use compat bridge for settings sidebar
This commit is contained in:
parent
e2f25749e0
commit
88cdcf9863
1 changed files with 28 additions and 24 deletions
|
|
@ -170,14 +170,17 @@ class const SettingsPage({super.key}) extends ConsumerWidget {
|
||||||
)
|
)
|
||||||
: Row(
|
: Row(
|
||||||
children: [
|
children: [
|
||||||
NavigationRailM3E(
|
MaterialUiCompatibilityBridge(
|
||||||
|
child: NavigationRailM3E(
|
||||||
type: .alwaysExpand,
|
type: .alwaysExpand,
|
||||||
trailing: searchBar,
|
trailing: searchBar,
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
sections: sections
|
sections: sections
|
||||||
.mapTo(
|
.mapTo(
|
||||||
(categoryGroup, categories) =>
|
(
|
||||||
NavigationRailM3ESection(
|
categoryGroup,
|
||||||
|
categories,
|
||||||
|
) => NavigationRailM3ESection(
|
||||||
header: DividerText(categoryGroup),
|
header: DividerText(categoryGroup),
|
||||||
destinations: categories
|
destinations: categories
|
||||||
.map(
|
.map(
|
||||||
|
|
@ -195,6 +198,7 @@ class const SettingsPage({super.key}) extends ConsumerWidget {
|
||||||
onDestinationSelected: (value) =>
|
onDestinationSelected: (value) =>
|
||||||
selected.value = value,
|
selected.value = value,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
VerticalDivider(),
|
VerticalDivider(),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: SuperListView(
|
child: SuperListView(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue