flutter_progress_dialog 0.1.0 copy "flutter_progress_dialog: ^0.1.0" to clipboard
flutter_progress_dialog: ^0.1.0 copied to clipboard

A flutter library for the progress dialog. Easily show and hide. Support specify custom loading widget.

example/lib/main.dart

import 'dart:async';

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

import 'package:flutter_progress_dialog/flutter_progress_dialog.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return ProgressDialog(
//      loading: Container(
//        decoration: BoxDecoration(color: Color(0xa0000000), borderRadius: BorderRadius.all(Radius.circular(10.0))),
//        child: SpinKitRipple(size: 120, color: Colors.white),
//      ),
      orientation: ProgressOrientation.vertical,
      loadingText: "Loading...",
      child: MaterialApp(
        theme: ThemeData(primarySwatch: Colors.green),
        home: Scaffold(
          appBar: AppBar(title: const Text('ProgressDialog Demo')),
          body: Center(
            child: RaisedButton(
              onPressed: () {
                showProgressDialog();
                Future.delayed(Duration(seconds: 4), () {
                  dismissProgressDialog();
                });
              },
              child: Text("Show ProgressDialog"),
            ),
          ),
        ),
      ),
    );
  }
}
24
likes
40
pub points
71%
popularity

Publisher

unverified uploader

A flutter library for the progress dialog. Easily show and hide. Support specify custom loading widget.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on flutter_progress_dialog