Skip to content

Commit 8b31157

Browse files
committed
[#31] Refactor
1 parent 8003a93 commit 8b31157

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/screens/home/home_page_indicator_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class HomePageIndicatorWidget extends StatelessWidget {
2222
Widget build(BuildContext context) {
2323
return ValueListenableBuilder(
2424
valueListenable: currentPage,
25-
builder: (BuildContext context, int value, Widget? child) {
25+
builder: (_, __, ___) {
2626
return PageViewDotIndicator(
2727
currentItem: currentPage.value,
2828
count: surveysLength,

lib/screens/home/home_pages_widget.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class HomePagesWidget extends StatelessWidget {
4242
children: [
4343
const Spacer(),
4444
SafeArea(
45-
bottom: true,
4645
child: Padding(
4746
padding: const EdgeInsets.only(
4847
left: 0,

lib/screens/home/home_screen.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ class _HomeScreenState extends ConsumerState<HomeScreen> {
8181
child: Padding(
8282
padding: const EdgeInsets.only(bottom: 220),
8383
child: HomePageIndicatorWidget(
84-
surveysLength: surveys.length, currentPage: _currentPage),
84+
surveysLength: surveys.length,
85+
currentPage: _currentPage,
86+
),
8587
),
8688
)
8789
],

0 commit comments

Comments
 (0)