flutter_waya 9.5.2 copy "flutter_waya: ^9.5.2" to clipboard
flutter_waya: ^9.5.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 弹窗
6
likes
140
pub points
77%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_waya