pop_alert 0.0.28 copy "pop_alert: ^0.0.28" to clipboard
pop_alert: ^0.0.28 copied to clipboard

Pop alert is a responsive and animated alert / dialog for flutter, A beautiful replacement for Flutter "alert / dialog".

Pop Alert #

Pop alert is a responsive and animated alert / dialog for flutter, A beautiful replacement for Flutter "alert / dialog". #

PopAlert

Installation #

  1. Add the latest version of package to your pubspec.yaml (and runflutter pub get):
dependencies:
  pop_alert: ^0.0.28
  1. Import the package and use it in your Flutter App.
import 'package:pop_alert/pop_alert.dart';

Example #

There are a number of properties that you can modify:

  • icon
  • title
  • text
  • button

Simple alert show a dialog with no animated icon

PopAlert.simpleAlert(
    context: context,
    title: 'Hello world!',
    button: 'OK',
)
PopAlert.simpleAlert(
    context: context,
    title: 'Title goes here!',
    text: '...and text goes here!',
    button: 'OK',
)

Icon alert show a dialog with animated icon of four type of alert.

The icon can be of four type success, failed, info, and warning.

PopAlert.iconAlert(
    context: context,
    icon: 'success',
    title: 'Good job!',
    button: 'OK',
)
PopAlert.iconAlert(
    context: context,
    icon: PopAlertIcon.success,
    title: 'Good job!',
    text: 'You clicked the button!',
    button: 'OK',
)
3
likes
140
pub points
32%
popularity

Publisher

unverified uploader

Pop alert is a responsive and animated alert / dialog for flutter, A beautiful replacement for Flutter "alert / dialog".

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, lottie

More

Packages that depend on pop_alert