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,30 +170,34 @@ class const SettingsPage({super.key}) extends ConsumerWidget {
|
||||||
)
|
)
|
||||||
: Row(
|
: Row(
|
||||||
children: [
|
children: [
|
||||||
NavigationRailM3E(
|
MaterialUiCompatibilityBridge(
|
||||||
type: .alwaysExpand,
|
child: NavigationRailM3E(
|
||||||
trailing: searchBar,
|
type: .alwaysExpand,
|
||||||
scrollable: true,
|
trailing: searchBar,
|
||||||
sections: sections
|
scrollable: true,
|
||||||
.mapTo(
|
sections: sections
|
||||||
(categoryGroup, categories) =>
|
.mapTo(
|
||||||
NavigationRailM3ESection(
|
(
|
||||||
header: DividerText(categoryGroup),
|
categoryGroup,
|
||||||
destinations: categories
|
categories,
|
||||||
.map(
|
) => NavigationRailM3ESection(
|
||||||
(category) =>
|
header: DividerText(categoryGroup),
|
||||||
NavigationRailM3EDestination(
|
destinations: categories
|
||||||
icon: Icon(category.icon),
|
.map(
|
||||||
label: category.title,
|
(category) =>
|
||||||
),
|
NavigationRailM3EDestination(
|
||||||
)
|
icon: Icon(category.icon),
|
||||||
.toList(),
|
label: category.title,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.toList(),
|
.toList(),
|
||||||
selectedIndex: selected.value,
|
),
|
||||||
onDestinationSelected: (value) =>
|
)
|
||||||
selected.value = value,
|
.toList(),
|
||||||
|
selectedIndex: selected.value,
|
||||||
|
onDestinationSelected: (value) =>
|
||||||
|
selected.value = value,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
VerticalDivider(),
|
VerticalDivider(),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue