flutter_waya 9.7.1 flutter_waya: ^9.7.1 copied to clipboard
The Flutter UI library contains multiple custom src,compatible with android,web,ios and MAC.
flutter_waya #
运行Example查看UI组件 #
初始化 navigatorKey 两种方式 #
/// 设置你自己的 navigatorKey
void setGlobalNavigatorKey() {
FlExtended().scaffoldMessengerKey = scaffoldMessengerKey;
FlExtended().navigatorKey = navigatorKey;
}
/// 使用自己的 MaterialApp
class _AppState extends State<_App> {
@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorKey: FlExtended().globalNavigatorKey,
scaffoldMessengerKey: FlExtended().scaffoldMessengerKey,
title: 'Waya UI',
home: _Home());
}
}
- 使用
ExtendedPopScope
可自动管理 android 物理返回键 关闭loading
等Overlay
弹窗