lukepighetti 5 years ago
parent
commit
caf02f61f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/src/fluro_router.dart

+ 1 - 1
lib/src/fluro_router.dart

@@ -106,7 +106,7 @@ class FluroRouter {
     if (routeSettings == null) {
     if (routeSettings == null) {
       settingsToUse = RouteSettings(name: path);
       settingsToUse = RouteSettings(name: path);
     }
     }
-    if (routeSettings.name == null) {
+    if (settingsToUse.name == null) {
       settingsToUse = settingsToUse.copyWith(name: path);
       settingsToUse = settingsToUse.copyWith(name: path);
     }
     }
     AppRouteMatch match = _routeTree.matchRoute(path);
     AppRouteMatch match = _routeTree.matchRoute(path);