one_time_dialog 0.1.1 one_time_dialog: ^0.1.1 copied to clipboard
A flutter package for showing a dialog X amount of times to the user. This package uses SharedPreferences to make sure dialogs aren't shown too many times.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add one_time_dialog
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
one_time_dialog: ^0.1.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:one_time_dialog/one_time_dialog.dart';