FastOverlays class
Contextless overlays
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
clearMaterialBanners(
) → void - Clear all material banners
-
clearSnackBars(
) → void - Clear all snackbars
-
hideCurrentMaterialBanner(
) → void - Hide the current material banner
-
hideCurrentSnackBar(
) → void - Hide the current snackbar
-
init(
[GlobalKey< NavigatorState> ? key]) → GlobalKey<NavigatorState> - Initialize FastOverlays with a NavigatorState key
-
removeCurrentMaterialBanner(
) → void - Remove the current material banner
-
removeCurrentSnackBar(
) → void - Remove the current snackbar
-
showAboutDialog(
{String? applicationName, String? applicationVersion, Widget? applicationIcon, String? applicationLegalese, List< Widget> ? children, RouteSettings? routeSettings}) → void - Show an about dialog
-
showDatePicker(
{required DateTime initialDate, required DateTime firstDate, required DateTime lastDate, DateTime? currentDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, SelectableDayPredicate? selectableDayPredicate, String? helpText, String? cancelText, String? confirmText, Locale? locale, RouteSettings? routeSettings, TextDirection? textDirection, TransitionBuilder? builder, DatePickerMode initialDatePickerMode = DatePickerMode.day, String? errorFormatText, String? errorInvalidText, String? fieldHintText, String? fieldLabelText}) → Future< DateTime?> - Show a date picker
-
showDateRangePicker(
{DateTimeRange? initialDateRange, required DateTime firstDate, required DateTime lastDate, DateTime? currentDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, String? helpText, String? cancelText, String? confirmText, String? saveText, String? errorFormatText, String? errorInvalidText, String? errorInvalidRangeText, String? fieldStartHintText, String? fieldEndHintText, String? fieldStartLabelText, String? fieldEndLabelText, Locale? locale, RouteSettings? routeSettings, TextDirection? textDirection, TransitionBuilder? builder}) → Future< DateTimeRange?> - Show a date range picker
-
showDialog<
T> ({required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, RouteSettings? routeSettings}) → Future< T?> - Show a dialog
-
showGeneralDialog<
T> ({required RoutePageBuilder pageBuilder, bool barrierDismissible = false, String? barrierLabel, Color barrierColor = const Color(0x80000000), Duration transitionDuration = const Duration(milliseconds: 200), RouteTransitionsBuilder? transitionBuilder, RouteSettings? routeSettings}) → Future< T?> - Show a general dialog
-
showLicensePage(
{String? applicationName, String? applicationVersion, Widget? applicationIcon, String? applicationLegalese, }) → void - Show the license page
-
showMaterialBanner(
MaterialBanner materialBanner) → ScaffoldFeatureController< MaterialBanner, MaterialBannerClosedReason> - Show a MaterialBanner
-
showMenu<
T> ({required RelativeRect position, required List< PopupMenuEntry< items, T? initialValue, double? elevation, String? semanticLabel, ShapeBorder? shape, Color? color, }) → Future<T> >T?> - Show a menu
-
showModalBottomSheet<
T> ({required WidgetBuilder builder, Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, BoxConstraints? constraints, Color? barrierColor, bool isScrollControlled = false, bool isDismissible = true, bool enableDrag = true, RouteSettings? routeSettings, AnimationController? transitionAnimationController}) → Future< T?> - Show a bottom sheet Show a modal bottom sheet
-
showSearch<
T> ({required SearchDelegate< T> delegate, String? query = '', }) → Future<T?> - Show a search page
-
showSnackBar(
SnackBar snackBar) → ScaffoldFeatureController< SnackBar, SnackBarClosedReason> - Show a SnackBar
-
showTimePicker(
{required TimeOfDay initialTime, TransitionBuilder? builder, TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial, String? cancelText, String? confirmText, String? helpText, String? errorInvalidText, String? hourLabelText, String? minuteLabelText, RouteSettings? routeSettings, EntryModeChangeCallback? onEntryModeChanged}) → Future< TimeOfDay?> - Show a time picker