legacy_progress_dialog 0.1.2 copy "legacy_progress_dialog: ^0.1.2" to clipboard
legacy_progress_dialog: ^0.1.2 copied to clipboard

Helps developers improve user-experiece using a progress indicator and a loading message.

example/example.dart

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

class ExampleScreen extends StatefulWidget {
  @override
  _ExampleScreenState createState() => _ExampleScreenState();
}

class _ExampleScreenState extends State<ExampleScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('Progress Dialog'),
          centerTitle: true,
          brightness: Brightness.dark,
          backgroundColor: Colors.blue,
        ),
        body: Center(
            child: FlatButton(
          child: Text('Show Progress Dialog'),
          textColor: Colors.white,
          color: Colors.blue,
          onPressed: () {
            ProgressDialog progressDialog = ProgressDialog(
              context: context,
              backgroundColor: Colors.blue,
              textColor: Colors.white,
            );

            progressDialog.show();
            Future.delayed(Duration(seconds: 3))
                .then((value) => progressDialog.dismiss());
          },
        )));
  }
}
9
likes
110
pub points
78%
popularity

Publisher

verified publisherasadhameed.com

Helps developers improve user-experiece using a progress indicator and a loading message.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on legacy_progress_dialog