7 lines
280 B
Dart
7 lines
280 B
Dart
import 'package:flutter/widgets.dart';
|
||
|
||
/// 全局根导航 key:
|
||
/// 1. 给 GoRouter 作为根 Navigator 使用;
|
||
/// 2. 供启动隐私 Gate 这类"路由外层"页面直接打开子页面。
|
||
final GlobalKey<NavigatorState> rootNavigatorKey = GlobalKey<NavigatorState>();
|