progress_indicator_plus 0.0.4
progress_indicator_plus: ^0.0.4 copied to clipboard
A Flutter package that provides customizable progress indicators with dynamic text color contrast.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:progress_indicator_plus/progress_indicator_plus.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Progress Indicator Plus Example')),
body: Center(
child: SizedBox(
width: 200,
child: LinearProgressIndicatorPlus(
value: 0.5,
text: '50%',
height: 40,
padding: 8,
backgroundColor: Colors.grey[300],
color: Colors.blue,
borderRadius: BorderRadius.circular(8),
),
),
),
),
);
}
}