Skip to content

Instantly share code, notes, and snippets.

@ryanlid
Created February 4, 2020 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanlid/b007becdec822bc08efc789a5072a8e6 to your computer and use it in GitHub Desktop.
Save ryanlid/b007becdec822bc08efc789a5072a8e6 to your computer and use it in GitHub Desktop.
CupertinoActivityIndicator 加载指示器组件
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