flutter_waya 9.7.2 copy "flutter_waya: ^9.7.2" to clipboard
flutter_waya: ^9.7.2 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 物理返回键 关闭 loadingOverlay 弹窗
8
likes
0
points
1.29k
downloads

Publisher

unverified uploader

Weekly Downloads

The Flutter UI library contains multiple custom src,compatible with android,web,ios and MAC.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_waya