Fix searchbar appearing once per category on thin screens
This commit is contained in:
parent
f137b43492
commit
eaf3169f1c
1 changed files with 39 additions and 37 deletions
|
|
@ -72,15 +72,16 @@ class SettingsPage extends ConsumerWidget {
|
|||
),
|
||||
body: categoriesArePages
|
||||
? CustomScrollView(
|
||||
slivers: settingsCategoryGroups
|
||||
.mapTo(
|
||||
(categoryGroup, categories) => [
|
||||
slivers: [
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(12).copyWith(bottom: 4),
|
||||
child: searchBar,
|
||||
),
|
||||
),
|
||||
...settingsCategoryGroups
|
||||
.mapTo(
|
||||
(categoryGroup, categories) => [
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(
|
||||
|
|
@ -113,7 +114,8 @@ class SettingsPage extends ConsumerWidget {
|
|||
),
|
||||
],
|
||||
)
|
||||
.flattenedToList,
|
||||
.flattened,
|
||||
],
|
||||
)
|
||||
: Row(
|
||||
children: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue