fast_overlays 0.1.3 copy "fast_overlays: ^0.1.3" to clipboard
fast_overlays: ^0.1.3 copied to clipboard

outdated

Show overlays, dialogs, snackbars, and more without a context

Show overlays without context

pub package codecov checks popularity likes pub points

Features #

Unlike other contextless overlay solutions, fast_overlays uses Flutter's built-in overlay implementations

fast_overlays supports the following overlays:

  • Snackbar
  • Material banner
  • Modal bottom sheet
  • Date picker
  • Date range picker
  • Time picker
  • License page
  • Search
  • Menu
  • Dialog
  • About dialog
  • General dialog

Convenience classes #

Class Use-case
SnackBarDuration SnackBar duration constants

Getting started #

Register a GlobalKey with FastOverlays and your MaterialApp

import 'package:fast_overlays/fast_overlays.dart';
import 'package:flutter/material.dart';

void example() {
  // ...

  MaterialApp(
    navigatorKey: FastOverlays.init(),
  );
}

Usage #

import 'package:fast_overlays/fast_overlays.dart';
import 'package:flutter/material.dart';

void showSnackbar() {
  FastOverlays.showSnackBar(
    const SnackBar(
      content: Text('I am a snackbar'),
      duration: SnackBarDuration.indefinite,
    ),
  );
}

Additional information #

See fast_ui for more information

4
likes
0
pub points
52%
popularity

Publisher

verified publisherrexios.dev

Show overlays, dialogs, snackbars, and more without a context

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fast_overlays