wrap settings category in safearea

This commit is contained in:
Henry Hiles 2026-07-19 00:30:41 -04:00
commit 5df975f607
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -51,25 +51,27 @@ class SettingsCategoryPage extends HookConsumerWidget {
appBar: AppBar(
title: Text(sections.values.flattenedToList[index].title),
),
body: SuperListView(
controller: scrollController,
listController: listController.value,
padding: .symmetric(vertical: 12, horizontal: 8),
children: sections.values.flattenedToList[index].settings
.mapIndexed(
(index, setting) => Padding(
padding: .only(bottom: 4),
child: HighlightWrapper(
setting.builder(
setting.title,
setting.description,
setting.icon,
body: SafeArea(
child: SuperListView(
controller: scrollController,
listController: listController.value,
padding: .symmetric(vertical: 12, horizontal: 8),
children: sections.values.flattenedToList[index].settings
.mapIndexed(
(index, setting) => Padding(
padding: .only(bottom: 4),
child: HighlightWrapper(
setting.builder(
setting.title,
setting.description,
setting.icon,
),
isHighlighted: highlight.value == index,
),
isHighlighted: highlight.value == index,
),
),
)
.toList(),
)
.toList(),
),
),
),
);