mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-08-23 18:35:20 +08:00
update: router path
This commit is contained in:
@ -443,11 +443,12 @@ class _History extends State<History> {
|
||||
if (WidgetName2Icon.icons[value.name] != null) {
|
||||
icon = Icon(WidgetName2Icon.icons[value.name], size: 25);
|
||||
}
|
||||
String targetRouter = value.targetRouter;
|
||||
|
||||
list.add(
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Application.router.navigateTo(context, "${value.targetRouter}", transition: TransitionType.inFromRight);
|
||||
Application.router.navigateTo(context, "${targetRouter.toLowerCase()}", transition: TransitionType.inFromRight);
|
||||
},
|
||||
child: Chip(
|
||||
avatar: icon,
|
||||
|
@ -35,6 +35,7 @@ class WidgetItemContainer extends StatelessWidget {
|
||||
widgetDemosList.forEach((item) {
|
||||
if (item.name == targetName) {
|
||||
targetRouter = item.routerName;
|
||||
targetRouter = targetRouter.toLowerCase();
|
||||
}
|
||||
});
|
||||
Application.router.navigateTo(context, targetRouter, transition: TransitionType.inFromRight);
|
||||
|
Reference in New Issue
Block a user