animated_loading_bar 0.0.3 animated_loading_bar: ^0.0.3 copied to clipboard
A customizable horizontal loading bar with animated color transitions.
import 'package:flutter/material.dart';
import 'package:animated_loading_bar/animated_loading_bar.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Animated Loading Bar Example'),
),
body: const Center(
child: AnimatedLoadingBar(
colors: [Colors.red, Colors.blue, Colors.green, Colors.purple],
height: 10.0,
duration: Duration(seconds: 2),
),
),
),
);
}
}