Skip to content
Ivan Galkin edited this page Jan 1, 2024 · 1 revision

Methods that contains platform-decomposed functions to invoke the required interface behaviors.

Bottom sheet

Global methods for opening bottom sheets:

showFPCExpandedBottomSheet<T>(
  context,
  child: const Child(),
);
showFPCSmallBottomSheet<T>(
  context,
  child: const Child(),
);

Dialog

Global method for opening dialogs:

showFPCDialog<T>(
  context,
  child: const Child(),
);

Picker

Global methods for opening pickers:

showFPCDatePicker(
  context,
  cupertinoBottomSheetBuilder: (
    BuildContext context,
  ) => const CupertinoBottomSheetBuilder(),
);
showFPCTimePicker(
  context,
  cupertinoBottomSheetBuilder: (
    BuildContext context,
  ) => const CupertinoBottomSheetBuilder(),
);

SnackBar

Global method for showing snackbar:

showFPCSnackBar(
  context,
  child: const Child(),
);

And hide current snackbar:

hideFPCSnackBar(
  context,
);
Clone this wiki locally