【发布时间】:2021-10-15 04:40:41
【问题描述】:
Navigator.of(context).replace<T>(oldRoute: oldRoute, newRoute: newRoute);
如何在 Getx 中使用这个源 Flutter Api?
我在这样的项目中使用命名路由:
GetPage(
name: Routes.SELECTTARGET,
page: () => TargetPage(),
binding: TargetBinding(),
fullscreenDialog: true)
另一个问题:
我正在尝试使用Navigator.of(Get.context!).push(GetPageRoute(settings: RouteSettings(name: Routes.TARGETDETAIL, arguments: target.clone())));
但错误发生:
Null check operator used on a null value
怎么做
【问题讨论】:
标签: flutter flutter-getx