From 13525d23309e1e3b72c23301dce0358bb62e8468 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Thu, 3 Feb 2022 22:16:12 -0600 Subject: [PATCH] remove safe area for better ui --- mobile/lib/modules/home/views/home_page.dart | 42 ++++++++++---------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/mobile/lib/modules/home/views/home_page.dart b/mobile/lib/modules/home/views/home_page.dart index eea2d2ef87..40d5f3211a 100644 --- a/mobile/lib/modules/home/views/home_page.dart +++ b/mobile/lib/modules/home/views/home_page.dart @@ -104,32 +104,30 @@ class HomePage extends HookConsumerWidget { } } - return SafeArea( - child: DraggableScrollbar.semicircle( - // labelTextBuilder: (offset) { - // final int currentItem = _scrollController.hasClients - // ? (_scrollController.offset / _scrollController.position.maxScrollExtent * imageGridGroup.length) - // .floor() - // : 0; + return DraggableScrollbar.semicircle( + // labelTextBuilder: (offset) { + // final int currentItem = _scrollController.hasClients + // ? (_scrollController.offset / _scrollController.position.maxScrollExtent * imageGridGroup.length) + // .floor() + // : 0; - // if (imageGridGroup[currentItem] is MonthlyTitleText) { - // MonthlyTitleText item = imageGridGroup[currentItem] as MonthlyTitleText; + // if (imageGridGroup[currentItem] is MonthlyTitleText) { + // MonthlyTitleText item = imageGridGroup[currentItem] as MonthlyTitleText; - // scrollLabelText.value = item.monthTitleText; - // } + // scrollLabelText.value = item.monthTitleText; + // } - // return Text(scrollLabelText.value); - // }, - // labelConstraints: const BoxConstraints.tightFor(width: 200.0, height: 30.0), + // return Text(scrollLabelText.value); + // }, + // labelConstraints: const BoxConstraints.tightFor(width: 200.0, height: 30.0), + controller: _scrollController, + heightScrollThumb: 40.0, + child: CustomScrollView( controller: _scrollController, - heightScrollThumb: 40.0, - child: CustomScrollView( - controller: _scrollController, - slivers: [ - ImmichSliverAppBar(imageGridGroup: imageGridGroup), - ...imageGridGroup, - ], - ), + slivers: [ + ImmichSliverAppBar(imageGridGroup: imageGridGroup), + ...imageGridGroup, + ], ), ); }