Flutter教学

Flutter(36):Cupertino组件之Cupertin

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

Flutter教学目录持续更新中

Github源代码持续更新中

1.CupertinoActivityIndicator介绍

2.CupertinoActivityIndicator属性

3.CupertinoActivityIndicator.partiallyRevealed

1601870645(1).png
class _CupertinoActivityIndicatorPageState
    extends State<CupertinoActivityIndicatorPage> {
  _myCupertinoActivityIndicator() {
    return CupertinoActivityIndicator(
      animating: true,
      radius: 20,
    );
  }

  _myCupertinoActivityIndicatorPartiallyRevealed() {
    return CupertinoActivityIndicator.partiallyRevealed(
      radius: 20,
      progress: 0.5,
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('CupertinoActivityIndicator'),
      ),
      body: SingleChildScrollView(
        child: ListBody(
          children: [
            _myCupertinoActivityIndicator(),
            _myCupertinoActivityIndicatorPartiallyRevealed(),
          ],
        ),
      ),
    );
  }
}

下一节:Cupertino组件之CupertinoAlertDialog

Flutter(37):Cupertino组件之CupertinoAlertDialog

Flutter教学目录持续更新中

Github源代码持续更新中

上一篇下一篇

猜你喜欢

热点阅读