just_sonner 0.4.0
just_sonner: ^0.4.0 copied to clipboard
Stacking toasts for Flutter desktop in the spirit of sonner: a deck that fans out on hover, toasts updated in place, promise toasts, no BuildContext.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add just_sonnerWith Flutter:
$ flutter pub add just_sonnerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
just_sonner: ^0.4.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:just_sonner/just_sonner.dart';