fl_extended 0.0.1 copy "fl_extended: ^0.0.1" to clipboard
fl_extended: ^0.0.1 copied to clipboard

retracted

Some extension components and methods have been added to flutter and the routing functionality has been simplified

fl_extended #

为Flutter添加了一些扩展组件和方法,并简化了路由功能 #

运行Example查看UI组件 #

初始化 navigatorKey 两种方式 #

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

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

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

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

Publisher

unverified uploader

Some extension components and methods have been added to flutter and the routing functionality has been simplified

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, easy_refresh, flutter, flutter_staggered_grid_view, path_drawing

More

Packages that depend on fl_extended