flutter_waya 8.6.3 copy "flutter_waya: ^8.6.3" to clipboard
flutter_waya: ^8.6.3 copied to clipboard

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

flutter_waya #

Example 运行 Example 查看使用 #

初始化 navigatorKey 两种方式 #

/// 设置你自己的 navigatorKey
void setGlobalNavigatorKey() {
  GlobalWayUI().scaffoldMessengerKey = scaffoldMessengerKey;
  GlobalWayUI().navigatorKey = navigatorKey;
}

/// 使用自己的 MaterialApp
class _CustomAppState extends ExtendedState<_App> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        navigatorKey: GlobalWayUI().globalNavigatorKey,
        scaffoldMessengerKey: GlobalWayUI().scaffoldMessengerKey,
        title: 'Waya UI',
        home: _Home());
  }
}

/// 根组件使用  ExtendedWidgetsApp , 默认 移出 banner
class _AppState extends ExtendedState<_App> {
  @override
  Widget build(BuildContext context) {
    return ExtendedWidgetsApp(
        title: 'Waya UI', home: _Home(), pushStyle: RoutePushStyle.material);
  }
}

  • 使用 ExtendedWillPopScope 可自动管理 android 物理返回键 关闭 toast loading 等各种弹窗
8
likes
0
pub points
76%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, easy_refresh, flutter, flutter_staggered_grid_view, path_drawing

More

Packages that depend on flutter_waya