v10
This commit is contained in:
@@ -48,9 +48,10 @@ class _ColorPageState extends State<ColorPage> {
|
||||
}
|
||||
|
||||
void _selectColor(Color color){
|
||||
// String value = color.value.toRadixString(16);
|
||||
// router.path = '/color/detail?color=$value';
|
||||
router.changePath('/app/color/detail',extra: color);
|
||||
String value = color.value.toRadixString(16);
|
||||
String path = '/app/color/detail?color=$value';
|
||||
// router.changePath('/app/color/detail',extra: color);
|
||||
router.changePath(path,recordHistory: true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -98,4 +98,7 @@ class SortStateScope extends InheritedNotifier<SortState> {
|
||||
|
||||
static SortState of(BuildContext context) =>
|
||||
context.dependOnInheritedWidgetOfExactType<SortStateScope>()!.notifier!;
|
||||
|
||||
static SortState read(BuildContext context) =>
|
||||
context.getInheritedWidgetOfExactType<SortStateScope>()!.notifier!;
|
||||
}
|
||||
@@ -81,7 +81,7 @@ class SortRailPanel extends StatelessWidget {
|
||||
options: sortNameMap.values.toList(),
|
||||
onSelected: (name) {
|
||||
state.selectName(name);
|
||||
router.changePath('/app/sort/player');
|
||||
router.changePath('/app/sort/${name}',recordHistory: true);
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user