fast_overlays 0.1.5 icon indicating copy to clipboard operation
fast_overlays: ^0.1.5 copied to clipboard

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 #

ClassUse-case
SnackBarDurationSnackBar 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

2
likes
140
pub points
49%
popularity

Publisher

verified publisher iconrexios.dev

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

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on fast_overlays