flutter架 构项目基础
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
/// 全局根导航 key:
|
||||
/// 1. 给 GoRouter 作为根 Navigator 使用;
|
||||
/// 2. 供启动隐私 Gate 这类"路由外层"页面直接打开子页面。
|
||||
final GlobalKey<NavigatorState> rootNavigatorKey = GlobalKey<NavigatorState>();
|
||||
Reference in New Issue
Block a user