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(
|
||||
children: [
|
||||
NavigationRailM3E(
|
||||
MaterialUiCompatibilityBridge(
|
||||
child: NavigationRailM3E(
|
||||
type: .alwaysExpand,
|
||||
trailing: searchBar,
|
||||
scrollable: true,
|
||||
sections: sections
|
||||
.mapTo(
|
||||
(categoryGroup, categories) =>
|
||||
NavigationRailM3ESection(
|
||||
(
|
||||
categoryGroup,
|
||||
categories,
|
||||
) => NavigationRailM3ESection(
|
||||
header: DividerText(categoryGroup),
|
||||
destinations: categories
|
||||
.map(
|
||||
|
|
@ -195,6 +198,7 @@ class const SettingsPage({super.key}) extends ConsumerWidget {
|
|||
onDestinationSelected: (value) =>
|
||||
selected.value = value,
|
||||
),
|
||||
),
|
||||
VerticalDivider(),
|
||||
Expanded(
|
||||
child: SuperListView(
|
||||
|
|
|
|||
Loading…
Reference in a new issue