Skip to content

Luo-Kuang/PopularAlert

Repository files navigation

popular_alert

A simple and versatile alert widget wrapped in flutter.The way to use it is very similar to what flutter comes with, not the way Material looks and not the serious frame dropping in cupertino!

Getting Started

showDialog(
  context: context,
  builder: (BuildContext context) {
    return PopularAlert(
      title: 'title',
      content: 'content',
      actions: [
        FlatButton(
            onPressed: () {},
            child: Text(
              'Cancel',
              style: TextStyle(color: Colors.blue),
            )),
        FlatButton(
            onPressed: () {},
            child: Text(
              'Ok',
              style: TextStyle(color: Colors.red),
            )),
      ],
    );
  });

About

A kind of alert we often use in flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published