Fix searchbar appearing once per category on thin screens
This commit is contained in:
parent
f0c3d4376f
commit
1a2f40d144
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…
Add table
Add a link
Reference in a new issue