shiny_striped_progress_bar 1.1.0
shiny_striped_progress_bar: ^1.1.0 copied to clipboard
A Flutter package for creating animated progress bars with a striped design and shine effect.
import 'package:example/example_page.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const Example());
}
class Example extends StatelessWidget {
const Example({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Shiny Striped Progress Bar Example',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.greenAccent),
useMaterial3: true,
),
home: const HomePage(title: 'Shiny Striped Progress Bar Example'),
);
}
}
class HomePage extends StatefulWidget {
const HomePage({super.key, required this.title});
final String title;
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
spacing: 15,
children: <Widget>[
const Text(
'Tap the "Example Page" button below to view the animations.',
textAlign: TextAlign.center,
),
ElevatedButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => ExamplePage()),
);
},
child: Text('Example Page'))
],
),
),
);
}
}