Replace setPathUrlStrategy with usePathUrlStrategy
Updated the URL strategy function call to usePathUrlStrategy for web routing. This change ensures compatibility with the latest API and improves route handling.
This commit is contained in:
parent
940e244d0b
commit
f13f0539f8
|
|
@ -134,7 +134,7 @@ Future prepareApp() async {
|
|||
pageUrl = Uri.base.toString();
|
||||
var routeUrlStrategy = getFletRouteUrlStrategy();
|
||||
if (routeUrlStrategy == "path") {
|
||||
setPathUrlStrategy();
|
||||
usePathUrlStrategy();
|
||||
}
|
||||
} else if (_args.isNotEmpty && isDesktopPlatform()) {
|
||||
// developer mode
|
||||
|
|
|
|||
Loading…
Reference in New Issue