Pop alert is a responsive and animated alert / dialog for flutter, A beautiful replacement for Flutter "alert / dialog".
- Add the latest version of package to your pubspec.yaml (and run
flutter pub get
):
dependencies:
pop_alert: ^0.0.30
- Import the package and use it in your Flutter App.
import 'package:pop_alert/pop_alert.dart';
There are a numbers of properties that you can modify:
- icon
- title
- text
- button
PopAlert.simpleAlert(
context: context,
title: 'Hello world!',
button: 'OK',
)
PopAlert.simpleAlert(
context: context,
title: 'Title goes here!',
text: '...and text goes here!',
button: 'OK',
)
PopAlert.iconAlert(
context: context,
icon: PopAlertIcon.success,
title: 'Good job!',
button: 'OK',
)
PopAlert.iconAlert(
context: context,
icon: PopAlertIcon.success,
title: 'Good job!',
text: 'You clicked the button!',
button: 'OK',
)