first commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// 全局 navigatorKey
|
||||
///
|
||||
/// 供没有 BuildContext 的地方使用(网络层 401/403 跳转、全局 toast)。
|
||||
/// 独立成文件是为了避免 app.dart ↔ 网络层 之间的循环依赖。
|
||||
final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
|
||||
Reference in New Issue
Block a user