路由生命周期状态

This commit is contained in:
toly
2023-12-07 08:10:09 +08:00
parent 25b3bc16b2
commit 34d8e6dd75
13 changed files with 797 additions and 16 deletions

View File

@@ -1,20 +1,9 @@
import 'package:iroute/10/more_pop_icon.dart';
import 'package:iroute/13/04/app/navigation/router/iroute.dart';
void main() {
String path = '/color/detail/a';
// List<String> parts = path.split('/');
// print(parts);
// print(parserPath(path));
Uri uri = Uri.parse(path);
print(uri.fragment);
print(uri.pathSegments);
List<String> parts = uri.pathSegments;
parts = List.of(parts)..removeLast();
String result = parts.join('/');
print(result);
bool b = MenuAction.help > MenuAction.about;
print(b);
}