Skip to content

Commit

Permalink
[#31] Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhanh44 committed Aug 24, 2023
1 parent 8003a93 commit 8b31157
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/screens/home/home_page_indicator_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class HomePageIndicatorWidget extends StatelessWidget {
Widget build(BuildContext context) {
return ValueListenableBuilder(
valueListenable: currentPage,
builder: (BuildContext context, int value, Widget? child) {
builder: (_, __, ___) {
return PageViewDotIndicator(
currentItem: currentPage.value,
count: surveysLength,
Expand Down
1 change: 0 additions & 1 deletion lib/screens/home/home_pages_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class HomePagesWidget extends StatelessWidget {
children: [
const Spacer(),
SafeArea(
bottom: true,
child: Padding(
padding: const EdgeInsets.only(
left: 0,
Expand Down
4 changes: 3 additions & 1 deletion lib/screens/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ class _HomeScreenState extends ConsumerState<HomeScreen> {
child: Padding(
padding: const EdgeInsets.only(bottom: 220),
child: HomePageIndicatorWidget(
surveysLength: surveys.length, currentPage: _currentPage),
surveysLength: surveys.length,
currentPage: _currentPage,
),
),
)
],
Expand Down

0 comments on commit 8b31157

Please sign in to comment.