切换导航
{{systemName}}
{{ info.Title }}
{{info.Title}}
{{ menu.Title }}
{{menu.Title}}
登录
|
退出
搜索
flutter进度指示器
作者:ych
``` class ProgressDemo extends StatelessWidget { const ProgressDemo({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Padding( padding:const EdgeInsets.all(10), child: Column( children: [ const LinearProgressIndicator( value: .5, valueColor: AlwaysStoppedAnimation(Colors.yellow), ), const SizedBox(height: 16,), const CircularProgressIndicator( value: .5, valueColor: AlwaysStoppedAnimation(Colors.lightGreen), ), const SizedBox(height: 16,), // 加载 Container( height: 100, width: 100, child:const CircularProgressIndicator( valueColor: AlwaysStoppedAnimation(Colors.red), ), ), const SizedBox(height: 16,), // ios风格 const CupertinoActivityIndicator(), ], ), ); } } ``` [更多进度指示器](https://book.flutterchina.club/chapter3/progress.html#_3-6-3-%E8%BF%9B%E5%BA%A6%E8%89%B2%E5%8A%A8%E7%94%BB "更多进度指示器")
相关推荐
flutter全局状态管理和MVVM
flutter开发中的几种按钮
Flutter布局和嵌套控件
flutter调用其他页面的widget
flutter点击事件
flutter开发中的图片Icon
flutter表单输入框
flutter路由设置
flutter开关和复选框
评论区
先去登录
版权所有:机遇屋在线 Copyright © 2021-2025 jiyuwu Co., Ltd.
鲁ICP备16042261号-1