Skip to content

Instantly share code, notes, and snippets.

@WinXaito
Created October 15, 2021 14:48
Show Gist options
  • Save WinXaito/f7212fd3e7f4c03a2d232be589e3fcfe to your computer and use it in GitHub Desktop.
Save WinXaito/f7212fd3e7f4c03a2d232be589e3fcfe to your computer and use it in GitHub Desktop.
FluentUI ProgressRing wrong way
import 'package:fluent_ui/fluent_ui.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return FluentApp(
title: 'Flutter Demo',
theme: ThemeData(
brightness: Brightness.light,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key, required this.title}) : super(key: key);
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return const ScaffoldPage(
content: Center(
child: ProgressRing(),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment