form_draft 0.1.0
form_draft: ^0.1.0 copied to clipboard
Automatically save and restore Flutter form drafts, so users never lose what they typed when the app is backgrounded, killed by the OS, or navigated away by accident.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add form_draftThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
form_draft: ^0.1.0Alternatively, 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:form_draft/form_draft.dart';