Created
February 4, 2020 09:17
-
-
Save ryanlid/b007becdec822bc08efc789a5072a8e6 to your computer and use it in GitHub Desktop.
CupertinoActivityIndicator 加载指示器组件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'CupertinoActivityIndicator 示例', | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text("CupertinoActivityIndicator 示例"), | |
), | |
body: Center( | |
child: CupertinoActivityIndicator( | |
// 加载图形的半径 | |
radius: 20.0, | |
// 是否播放加载动画 | |
animating: true, | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment