flutter_platform_widgets library Null safety

Classes

CupertinoAlertDialogData
CupertinoAppData
CupertinoAppRouterData
CupertinoDatePickerData
CupertinoDialogActionData
CupertinoElevatedButtonData
CupertinoIconButtonData
CupertinoModalSheetData
CupertinoNavigationBarData
CupertinoPageData
CupertinoPageRouteData
CupertinoPageScaffoldData
CupertinoPopupMenuCancelButtonData
CupertinoPopupMenuData
CupertinoPopupMenuOptionData
CupertinoProgressIndicatorData
CupertinoSliderData
CupertinoSwitchData
CupertinoTabBarData
CupertinoTabControllerData
CupertinoTabScaffoldData
CupertinoTabViewData
CupertinoTextButtonData
CupertinoTextFieldData
CupertinoTextFormFieldData
DatePickerContentData
DefaultCupertinoDatePicker
MaterialAlertDialogData
MaterialAppBarData
MaterialAppData
MaterialAppRouterData
MaterialDatePickerData
MaterialDialogActionData
MaterialDialogFlatActionData
MaterialElevatedButtonData
MaterialIconButtonData
MaterialModalSheetData
MaterialNavBarData
MaterialPageData
MaterialPageRouteData
MaterialPopupMenuData
MaterialPopupMenuOptionData
MaterialProgressIndicatorData
MaterialScaffoldData
MaterialSliderData
MaterialSwitchData
MaterialTabController
MaterialTabControllerData
MaterialTabScaffoldData
MaterialTextButtonData
MaterialTextFieldData
MaterialTextFormFieldData
PlatformAlertDialog
PlatformApp
PlatformAppBar
PlatformCircularProgressIndicator
PlatformDialogAction
PlatformElevatedButton
PlatformIconButton
PlatformIcons
PlatformNavBar
PlatformPopupMenu
PlatformProvider
A Provider that provides access to the functions of swicthing platforms.
PlatformProviderState
PlatformScaffold
PlatformSettingsData
PlatformSlider
PlatformStyleData
PlatformSwitch
PlatformTabController
PlatformTabScaffold
PlatformText
PlatformTextButton
PlatformTextField
PlatformTextFormField
PlatformWidget
PlatformWidgetBase<I extends Widget, A extends Widget>
PlatformWidgetBuilder
Provides a builder for either the Material or Cupertino platforms which take a child for common use
PopupMenuOption

Extensions

PlatformIconsExt

Constants

kDefaultRoundedBorderDecoration → const BoxDecoration
BoxDecoration(color: CupertinoDynamicColor.withBrightness(color: CupertinoColors.white, darkColor: CupertinoColors.black), border: _kDefaultRoundedBorder, borderRadius: BorderRadius.all(Radius.circula…

Functions

formatData(BuildContext context, String data) String
isCupertino(BuildContext context) bool
isMaterial(BuildContext context) bool
platform(BuildContext context) PlatformTarget
platformPage({required BuildContext context, Widget? child, String? title, String? name, bool? maintainState, bool? fullscreenDialog, LocalKey? key, String? restorationId, Object? arguments, PlatformBuilder<MaterialPageData>? material, PlatformBuilder<CupertinoPageData>? cupertino}) Page
platformPageRoute<T>({required BuildContext context, WidgetBuilder? builder, RouteSettings? settings, bool? maintainState, bool? fullscreenDialog, String? iosTitle, PlatformBuilder<MaterialPageRouteData>? material, PlatformBuilder<CupertinoPageRouteData>? cupertino}) PageRoute<T>
platformThemeData<T>(BuildContext context, {required T material(ThemeData theme), required T cupertino(CupertinoThemeData theme)}) → T
showPlatformDatePicker({required BuildContext context, required DateTime initialDate, required DateTime firstDate, required DateTime lastDate, PlatformBuilder<MaterialDatePickerData>? material, PlatformBuilder<CupertinoDatePickerData>? cupertino, DatePickerContentBuilder? cupertinoContentBuilder}) Future<DateTime?>
showPlatformDialog<T>({required BuildContext context, required WidgetBuilder builder, bool? barrierDismissible, RouteSettings? routeSettings, bool useRootNavigator = true, bool materialUseSafeArea = true, Color? materialBarrierColor = Colors.black54, String? barrierLabel}) Future<T?>
showPlatformModalSheet<T>({required BuildContext context, required WidgetBuilder builder, MaterialModalSheetData? material, CupertinoModalSheetData? cupertino}) Future<T?>
Displays either the showModalBottomSheet for material or showCupertinoModalPopup for cupertino

Enums

PlatformStyle
PlatformTarget
Extends on TargetPlatform to include web

Typedefs

DatePickerContentBuilder = Widget Function(DatePickerContentData data, CupertinoDatePickerData? cupertinoData)
PlatformBuilder<T> = T Function(BuildContext context, PlatformTarget platform)
PlatformIndexBuilder<T> = T Function(BuildContext context, PlatformTarget platform, int index)