sunny_platform_widgets library

Classes

CupertinoAlertDialogData
CupertinoAppData
CupertinoAppRouterData
CupertinoButtonData
CupertinoDatePickerData
CupertinoDialogActionData
CupertinoElevatedButtonData
CupertinoFilledButtonData
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
MaterialFlatButtonData
MaterialIconButtonData
MaterialModalSheetData
MaterialNavBarData
MaterialPageData
MaterialPageRouteData
MaterialPopupMenuData
MaterialPopupMenuOptionData
MaterialProgressIndicatorData
MaterialRaisedButtonData
MaterialScaffoldData
MaterialSliderData
MaterialSwitchData
MaterialTabController
MaterialTabControllerData
MaterialTabScaffoldData
MaterialTextButtonData
MaterialTextFieldData
MaterialTextFormFieldData
PlatformAlertDialog
PlatformApp
PlatformAppBar
PlatformButton
PlatformCircularProgressIndicator
PlatformDialogAction
PlatformElevatedButton
PlatformIconButton
PlatformIcons
PlatformNavBar
PlatformOverrides
PlatformOverridesData
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

Enums

PlatformStyle
PlatformTarget
Extends on TargetPlatform to include web

Properties

webPlatformTarget PlatformTarget
no getter

Functions

defaultShowPlatformDialog<T>() ShowPlatformDialog<T>
defaultShowPlatformModalSheet<T>() ShowPlatformModalSheet<T>
Displays either the showModalBottomSheet for material or showCupertinoModalPopup for cupertino
formatData(BuildContext context, String data) String
isCupertino(BuildContext context) bool
isMaterial(BuildContext context) bool
platform(BuildContext context) PlatformTarget
platformPage<T>({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, dynamic extraOptions}) Page<T>
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, dynamic extraOptions}) 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, dynamic extraOptions}) Future<T?>
showPlatformModalSheet<T>({required BuildContext context, required WidgetBuilder builder, MaterialModalSheetData? material, CupertinoModalSheetData? cupertino, dynamic extraOptions}) Future<T?>
Displays either the showModalBottomSheet for material or showCupertinoModalPopup for cupertino

Typedefs

DatePickerContentBuilder = Widget Function(DatePickerContentData data, CupertinoDatePickerData? cupertinoData)
PageBuilder<T> = Page<T> Function()
PlatformBuilder<T> = T Function(BuildContext context, PlatformTarget platform)
PlatformIndexBuilder<T> = T Function(BuildContext context, PlatformTarget platform, int index)
PlatformOverrideBuilder = Widget Function()
PlatformPageFactory = Page<T> Function<T>({Object? arguments, Widget? child, PlatformBuilder<CupertinoPageData>? cupertino, bool fullscreenDialog, LocalKey? key, bool maintainState, PlatformBuilder<MaterialPageData>? material, String? name, String? restorationId, String? title})
ShowDatePicker = Future<DateTime?> Function({required BuildContext context, PlatformBuilder<CupertinoDatePickerData>? cupertino, DatePickerContentBuilder? cupertinoContentBuilder, dynamic extraOptions, required DateTime firstDate, required DateTime initialDate, required DateTime lastDate, PlatformBuilder<MaterialDatePickerData>? material})
ShowPlatformDialog<T> = Future<T?> Function({bool? barrierDismissible, String? barrierLabel, required WidgetBuilder builder, Constraints? constraints, required BuildContext context, dynamic extraOptions, Color? materialBarrierColor, bool materialUseSafeArea, RouteSettings? routeSettings, bool useRootNavigator})
ShowPlatformDialogFactory<T> = ShowPlatformDialog<T> Function()
ShowPlatformModalSheet<T> = Future<T?> Function({required WidgetBuilder builder, required BuildContext context, CupertinoModalSheetData? cupertino, MaterialModalSheetData? material})