1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 22:51:59 +00:00

remove safe area for better ui

This commit is contained in:
Alex Tran 2022-02-03 22:16:12 -06:00
parent 0d8fddf537
commit 13525d2330

View file

@ -104,32 +104,30 @@ class HomePage extends HookConsumerWidget {
} }
} }
return SafeArea( return DraggableScrollbar.semicircle(
child: DraggableScrollbar.semicircle( // labelTextBuilder: (offset) {
// labelTextBuilder: (offset) { // final int currentItem = _scrollController.hasClients
// final int currentItem = _scrollController.hasClients // ? (_scrollController.offset / _scrollController.position.maxScrollExtent * imageGridGroup.length)
// ? (_scrollController.offset / _scrollController.position.maxScrollExtent * imageGridGroup.length) // .floor()
// .floor() // : 0;
// : 0;
// if (imageGridGroup[currentItem] is MonthlyTitleText) { // if (imageGridGroup[currentItem] is MonthlyTitleText) {
// MonthlyTitleText item = imageGridGroup[currentItem] as MonthlyTitleText; // MonthlyTitleText item = imageGridGroup[currentItem] as MonthlyTitleText;
// scrollLabelText.value = item.monthTitleText; // scrollLabelText.value = item.monthTitleText;
// } // }
// return Text(scrollLabelText.value); // return Text(scrollLabelText.value);
// }, // },
// labelConstraints: const BoxConstraints.tightFor(width: 200.0, height: 30.0), // labelConstraints: const BoxConstraints.tightFor(width: 200.0, height: 30.0),
controller: _scrollController,
heightScrollThumb: 40.0,
child: CustomScrollView(
controller: _scrollController, controller: _scrollController,
heightScrollThumb: 40.0, slivers: [
child: CustomScrollView( ImmichSliverAppBar(imageGridGroup: imageGridGroup),
controller: _scrollController, ...imageGridGroup,
slivers: [ ],
ImmichSliverAppBar(imageGridGroup: imageGridGroup),
...imageGridGroup,
],
),
), ),
); );
} }