use compat bridge for settings sidebar

This commit is contained in:
Henry Hiles 2026-08-23 14:02:25 -04:00
commit 88cdcf9863
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -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(