Flutter教学

Flutter(31):Material组件之LinearPro

2020-10-03  本文已影响0人  starryxp

Flutter教学目录持续更新中

Github源代码持续更新中

1.ProgressIndicator介绍

2.LinearProgressIndicator属性

3.CircularProgressIndicator属性

4.使用注意

5.LinearProgressIndicator

value: null.png value: 0.4.png
 _myLinearProgressIndicator() {
   return LinearProgressIndicator(
     value: null,
     // value: 0.4,
     backgroundColor: Colors.amber.shade100,
     valueColor: AlwaysStoppedAnimation<Color>(Colors.amber),
   );
 }

Container(
  margin: EdgeInsets.all(20),
  height: 10,
  child: _myLinearProgressIndicator(),
),

6.CircularProgressIndicator

value: null.png value: 0.4.png
_myCircularProgressIndicator() {
  return CircularProgressIndicator(
    // value: null,
    value: 0.4,
    backgroundColor: Colors.amber.shade100,
    valueColor: AlwaysStoppedAnimation<Color>(Colors.amber),
    strokeWidth: 10,
  );
}

Container(
  margin: EdgeInsets.all(20),
  width: 200,
  height: 200,
  child: _myCircularProgressIndicator(),
),

下一节:Material组件之Chip

Flutter(32):Material组件之Chip

Flutter教学目录持续更新中

Github源代码持续更新中

上一篇 下一篇

猜你喜欢

热点阅读