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:
Feodor Fitsner 2025-12-03 18:47:25 -08:00
parent 940e244d0b
commit f13f0539f8
1 changed files with 1 additions and 1 deletions

View File

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