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

outdated

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

flutter_waya #

Example 运行 Example 查看使用 #

初始化 globalNavigatorKey 两种方式 #

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

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

  • Scaffold 使用 ExtendedScaffold 可自动管理 android 物理返回键 关闭 toast loading 等各种弹窗,以及多种功能

extension 扩展方法 #

utils 工具类 #

UI组件 #

  • button

    • DropdownMenuButton() 仿官方 DropdownButton 不遮挡默认
    • LiquidButton() 流体按钮
    • ElasticButton() 弹性按钮
  • carousel

    • Indicator() 指示器
    • Carousel() 轮播图
  • progress

    • LiquidProgress() 流体progress
    • Progress() 普通动画progress
  • ExtendedWidgetsApp() 根组件使用 ExtendedWidgetsApp()可直接使用push() pop()等多个路由方法和showDialogPopup(),showBottomPopup(),showCupertinoBottomPopup(),showDialogSureCancel(),showOverlay(),showLoading(),showToast(),无需传 context ,随处打开,关闭 以上弹窗或页面 必须使用 closePopup()或直接 pop(),

  • ExtendedScaffold() 添加 onWillPop() RefreshConfig padding margin decoration isStack isScroll children 等多个参数

  • ListWheel() 实现 picker 功能的滚动组件

  • ExtendedScrollView() 实现 自适应高度的 ExtendedSliverPersistentHeader()ExtendedSliverAppBar() ExtendedFlexibleSpaceBar() 无需设置 expandedHeight

  • ScrollList() 合并 ListView()GridView() 并添加 下拉刷新 和 上拉加载 功能

  • Universal()中合多个官方组件功能 减少嵌套

快捷打包命令 builds #

  • sh android.sh //即可打包命令 可拷贝builds至自己的项目目录 并修改
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

crypto, dio, flutter, flutter_easyrefresh, flutter_localizations, http_parser

More

Packages that depend on flutter_waya