wrap settings category in safearea
This commit is contained in:
parent
8f3f9fbef1
commit
5df975f607
1 changed files with 19 additions and 17 deletions
|
|
@ -51,25 +51,27 @@ class SettingsCategoryPage extends HookConsumerWidget {
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(sections.values.flattenedToList[index].title),
|
title: Text(sections.values.flattenedToList[index].title),
|
||||||
),
|
),
|
||||||
body: SuperListView(
|
body: SafeArea(
|
||||||
controller: scrollController,
|
child: SuperListView(
|
||||||
listController: listController.value,
|
controller: scrollController,
|
||||||
padding: .symmetric(vertical: 12, horizontal: 8),
|
listController: listController.value,
|
||||||
children: sections.values.flattenedToList[index].settings
|
padding: .symmetric(vertical: 12, horizontal: 8),
|
||||||
.mapIndexed(
|
children: sections.values.flattenedToList[index].settings
|
||||||
(index, setting) => Padding(
|
.mapIndexed(
|
||||||
padding: .only(bottom: 4),
|
(index, setting) => Padding(
|
||||||
child: HighlightWrapper(
|
padding: .only(bottom: 4),
|
||||||
setting.builder(
|
child: HighlightWrapper(
|
||||||
setting.title,
|
setting.builder(
|
||||||
setting.description,
|
setting.title,
|
||||||
setting.icon,
|
setting.description,
|
||||||
|
setting.icon,
|
||||||
|
),
|
||||||
|
isHighlighted: highlight.value == index,
|
||||||
),
|
),
|
||||||
isHighlighted: highlight.value == index,
|
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
)
|
.toList(),
|
||||||
.toList(),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue