-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.dart
41 lines (38 loc) · 1.54 KB
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import 'package:capped_progress_indicator/capped_progress_indicator.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
body: SafeArea(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: const [
LinearCappedProgressIndicator(),
LinearCappedProgressIndicator(minHeight: 20),
LinearCappedProgressIndicator(minHeight: 20, cornerRadius: 5),
LinearCappedProgressIndicator(value: 0.5),
LinearCappedProgressIndicator(value: 0.5, minHeight: 20),
LinearCappedProgressIndicator(value: 0.5, minHeight: 20, cornerRadius: 5),
CircularCappedProgressIndicator(strokeCap: StrokeCap.round),
CircularCappedProgressIndicator(strokeWidth: 10, strokeCap: StrokeCap.round),
CircularCappedProgressIndicator(strokeWidth: 10, strokeCap: StrokeCap.square),
CircularCappedProgressIndicator(value: 0.5, strokeCap: StrokeCap.round),
CircularCappedProgressIndicator(value: 0.5, strokeWidth: 10, strokeCap: StrokeCap.round),
CircularCappedProgressIndicator(value: 0.5, strokeWidth: 10, strokeCap: StrokeCap.square),
],
),
),
),
);
}
}