percent_indicator 1.0.16 copy "percent_indicator: ^1.0.16" to clipboard
percent_indicator: ^1.0.16 copied to clipboard

outdated

Library that allows you to display progress widgets based on percentage, can be Circular or Linear, you can also customize it to your needs.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:percent_indicator_example/sample_circular_page.dart';
import 'package:percent_indicator_example/sample_linear_page.dart';

void main() {
  runApp(new MaterialApp(home: new Scaffold(body: new SamplePage())));
}

class SamplePage extends StatefulWidget {
  @override
  _SamplePageState createState() => _SamplePageState();
}

class _SamplePageState extends State<SamplePage> {


  _openPage(Widget page){
      Navigator.push(
      context,
      new MaterialPageRoute(
        builder: (BuildContext context) => page,
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
      return Container(
              child: Center(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              MaterialButton(
                color: Colors.blueAccent,
                child: new Text("Circular Library"),
                onPressed: () => _openPage(SampleCircularPage()),
              ),
              Padding(
                padding: EdgeInsets.all(20.0),
              ),
              MaterialButton(
                color: Colors.blueAccent,
                child: new Text("Linear Library"),
                onPressed: () => _openPage(SampleLinearPage()),
              ),
            ],
          ),
        ),
      );
  }
}
2.76k
likes
40
points
691k
downloads

Publisher

verified publisherdiegoveloper.com

Weekly Downloads

Library that allows you to display progress widgets based on percentage, can be Circular or Linear, you can also customize it to your needs.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on percent_indicator