flutter_platform_widgets library Null safety

Classes

CupertinoAlertDialogData
CupertinoAppData
CupertinoAppRouterData
CupertinoButtonData
CupertinoDialogActionData
CupertinoElevatedButtonData
CupertinoFilledButtonData
CupertinoIconButtonData
CupertinoModalSheetData
CupertinoNavigationBarData
CupertinoPageData
CupertinoPageRouteData
CupertinoPageScaffoldData
CupertinoProgressIndicatorData
CupertinoSliderData
CupertinoSwitchData
CupertinoTabBarData
CupertinoTabControllerData
CupertinoTabScaffoldData
CupertinoTabViewData
CupertinoTextButtonData
CupertinoTextFieldData
CupertinoTextFormFieldData
MaterialAlertDialogData
MaterialAppBarData
MaterialAppData
MaterialAppRouterData
MaterialDialogActionData
MaterialDialogFlatActionData
MaterialElevatedButtonData
MaterialFlatButtonData
MaterialIconButtonData
MaterialModalSheetData
MaterialNavBarData
MaterialPageData
MaterialPageRouteData
MaterialProgressIndicatorData
MaterialRaisedButtonData
MaterialScaffoldData
MaterialSliderData
MaterialSwitchData
MaterialTabController
MaterialTabControllerData
MaterialTabScaffoldData
MaterialTextButtonData
MaterialTextFieldData
MaterialTextFormFieldData
PlatformAlertDialog
PlatformApp
PlatformAppBar
PlatformButton
PlatformCircularProgressIndicator
PlatformDialogAction
PlatformElevatedButton
PlatformIconButton
PlatformIcons
PlatformNavBar
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 [...]

Extensions

PlatformIconsExt

Constants

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

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
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

PlatformBuilder<T> = T Function(BuildContext context, PlatformTarget platform)
PlatformIndexBuilder<T> = T Function(BuildContext context, PlatformTarget platform, int index)