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
|
body: categoriesArePages
|
||||||
? CustomScrollView(
|
? CustomScrollView(
|
||||||
slivers: settingsCategoryGroups
|
slivers: [
|
||||||
.mapTo(
|
|
||||||
(categoryGroup, categories) => [
|
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.all(12).copyWith(bottom: 4),
|
padding: EdgeInsets.all(12).copyWith(bottom: 4),
|
||||||
child: searchBar,
|
child: searchBar,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
...settingsCategoryGroups
|
||||||
|
.mapTo(
|
||||||
|
(categoryGroup, categories) => [
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: EdgeInsets.symmetric(
|
||||||
|
|
@ -113,7 +114,8 @@ class SettingsPage extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
.flattenedToList,
|
.flattened,
|
||||||
|
],
|
||||||
)
|
)
|
||||||
: Row(
|
: Row(
|
||||||
children: [
|
children: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue