dialog2 0.7.2 dialog2: ^0.7.2 copied to clipboard
Modern modal dialog implementation containing remakes of alert & confirm dialogs supplemented by prompt & custom modal dialogs
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dialog2
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dialog2: ^0.7.2
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dialog2/dialog.dart';
import 'package:dialog2/dialogs/alert.dart';
import 'package:dialog2/dialogs/confirm.dart';
import 'package:dialog2/dialogs/modal.dart';
import 'package:dialog2/dialogs/prompt.dart';