colorful_circular_progress_indicator 0.0.2 colorful_circular_progress_indicator: ^0.0.2 copied to clipboard
Flutter Widget that shows Colorful Circular Progress Indicator with multiple colors.
import 'package:colorful_circular_progress_indicator/colorful_circular_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: 'Welcome to Flutter',
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: const Text('ColorfulCircularProgressIndicator'),
),
body: const Center(
child: ColorfulCircularProgressIndicator(
colors: [Colors.blue, Colors.red, Colors.amber, Colors.green],
strokeWidth: 5,
indicatorHeight: 40,
indicatorWidth: 40,
)),
),
);
}
}