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:
parent
13525d2330
commit
da4fd201ad
2 changed files with 23 additions and 21 deletions
|
@ -100,7 +100,7 @@ class ImmichSliverAppBar extends ConsumerWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
systemOverlayStyle: SystemUiOverlayStyle.dark,
|
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,30 +104,32 @@ class HomePage extends HookConsumerWidget {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return DraggableScrollbar.semicircle(
|
return SafeArea(
|
||||||
// labelTextBuilder: (offset) {
|
child: DraggableScrollbar.semicircle(
|
||||||
// final int currentItem = _scrollController.hasClients
|
// labelTextBuilder: (offset) {
|
||||||
// ? (_scrollController.offset / _scrollController.position.maxScrollExtent * imageGridGroup.length)
|
// final int currentItem = _scrollController.hasClients
|
||||||
// .floor()
|
// ? (_scrollController.offset / _scrollController.position.maxScrollExtent * imageGridGroup.length)
|
||||||
// : 0;
|
// .floor()
|
||||||
|
// : 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,
|
||||||
slivers: [
|
heightScrollThumb: 40.0,
|
||||||
ImmichSliverAppBar(imageGridGroup: imageGridGroup),
|
child: CustomScrollView(
|
||||||
...imageGridGroup,
|
controller: _scrollController,
|
||||||
],
|
slivers: [
|
||||||
|
ImmichSliverAppBar(imageGridGroup: imageGridGroup),
|
||||||
|
...imageGridGroup,
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue