customizable_progress_bar 0.0.1

SDKflutter
Platformandroidioswindowslinuxmacosweb

A highly customizable Flutter package providing both linear and circular progress bars with smooth animations, extensive styling options, and responsive design. Perfect for creating engaging loading indicators and progress tracking in your Flutter applications.

Customizable Progress Bar

A highly customizable Flutter package that provides both linear and circular progress bars with smooth animations and extensive styling options.

Features

  • 🎨 Fully customizable appearance
  • ⚡ Smooth animations
  • 📱 Responsive design
  • 🎯 Easy to use
  • 🔄 Both linear and circular progress bars

Demo

The above demonstration shows both linear and circular progress bars in action with different customization options.

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  customizable_progress_bar: ^1.0.0

Or run this command:

flutter pub add customizable_progress_bar

Usage

Linear Progress Bar

import 'package:customizable_progress_bar/customizable_progress_bar.dart';

LinearProgressBar(
  progress: 0.7, // 70% progress
  height: 20,
  backgroundColor: Colors.grey[200],
  progressColor: Colors.blue,
  animationDuration: Duration(milliseconds: 500),
  borderRadius: BorderRadius.circular(12),
)

Circular Progress Bar

import 'package:customizable_progress_bar/customizable_progress_bar.dart';

CircularProgressBar(
  progress: 0.7, // 70% progress
  size: 100,
  strokeWidth: 8,
  backgroundColor: Colors.grey[200],
  progressColor: Colors.blue,
  animationDuration: Duration(milliseconds: 800),
)

Parameters

Linear Progress Bar

ParameterTypeDefaultDescription
progressdoubleRequiredProgress value between 0.0 and 1.0
heightdouble20Height of the progress bar
backgroundColorColorColor(0xFFE0E0E0)Background color of the progress bar
progressColorColorColors.tealColor of the progress indicator
animationDurationDuration500msDuration of the progress animation
borderRadiusBorderRadiusGeometryBorderRadius.circular(12)Border radius of the progress bar

Circular Progress Bar

ParameterTypeDefaultDescription
progressdoubleRequiredProgress value between 0.0 and 1.0
sizedouble100Size of the circular progress bar
strokeWidthdouble8Width of the progress line
backgroundColorColorColor(0xFFE0E0E0)Background color of the progress bar
progressColorColorColors.tealColor of the progress indicator
animationDurationDuration800msDuration of the progress animation

Example

import 'package:flutter/material.dart';
import 'package:customizable_progress_bar/customizable_progress_bar.dart';

class ProgressDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        LinearProgressBar(
          progress: 0.7,
          progressColor: Colors.blue,
        ),
        SizedBox(height: 20),
        CircularProgressBar(
          progress: 0.7,
          progressColor: Colors.blue,
        ),
      ],
    );
  }
}

Contributing

Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.