custom_progress_dialog 1.0.5 copy "custom_progress_dialog: ^1.0.5" to clipboard
custom_progress_dialog: ^1.0.5 copied to clipboard

Simple and easy to use flutter package for showing progress bar, without the need of adding it to any widget.With just two calls show and dismiss, you can control it.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Progress Dialog Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key}) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  ProgressDialog _progressDialog = ProgressDialog(); 

  @override
  Widget build(BuildContext context) {
   
    return Scaffold(
      appBar: AppBar(
        title: Text("Progress Dialog Demo"),
      ),
      body: Center(        
        child: Wrap(
          alignment: WrapAlignment.center,
          spacing: 10,
          children: <Widget>[
            RaisedButton(
              onPressed: (){
                  _progressDialog.showProgressDialog(context,textToBeDisplayed: 'loading...',dismissAfter: Duration(seconds: 4));
              },
              child: Text('Show Progress'),
            ),
          ],
        ),
      ), 
    );
  }
}
4
likes
40
pub points
74%
popularity

Publisher

unverified uploader

Simple and easy to use flutter package for showing progress bar, without the need of adding it to any widget.With just two calls show and dismiss, you can control it.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, synchronized

More

Packages that depend on custom_progress_dialog