elliptical_progress_bar 0.1.1

SDKflutter
Platformandroidioswindowslinuxmacosweb

A Flutter package for creating customizable elliptical progress bars with various options.

Elliptical progress bar

New Features

  • Now the progressbar is Stateful
  • Added new progressbar AnimatedEllipticalProgressBar with animation

Features

  • Responsive
  • Customizable
  • Easy styling

Installing

flutter pub add elliptical_progress_bar

Important

The aspect ratio of the graph is 3:1, adjust required thickness accordingly.

Usage

ANIMATED ELLIPTICAL PROGRESS BAR

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('Elliptical progress bar'),
        ),
        body: SingleChildScrollView(
          child: Padding(
            padding: const EdgeInsets.all(10),
            child: 
                AnimatedEllipticalProgressBar(
                fillColor: Colors.grey,
                bgColor: Colors.black.withOpacity(0.5),
                thickness: 20,
                progress: 80,
                textColor: Colors.red,
                progressTextStyle: const TextStyle(fontSize: 30),
              ),
            ),
          ),
        );
  }
}

ELLIPTICAL PROGRESS BAR (without animation)

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('Elliptical progress bar'),
        ),
        body: SingleChildScrollView(
          child: Padding(
            padding: const EdgeInsets.all(10),
            child: 
                EllipticalProgressBar(
                  fillColor: Colors.red,
                  bgColor: Colors.red.withOpacity(0.5),
                  thickness: 30,
                  progress: 70,
                  textColor: Colors.blue,
                  showCenterProgress: false,
                ),
            ),
          ),
        );
  }
}

Props

NameValueDescription
fillColorColorColor to show the progress with.
bgColorColorColor to show the loop with.
progressdoubleProgress value (0 - 100).
textColorColor, optionalColor to show the progress text in center with.
showCenterProgressbool, default - true, optionalenable to show the center progress value, set to false to hide
thicknessdouble, default - 10, optionalset the thickness of the loop
progressTextStyleTextStyle, optionalTo customise the center progress text style