flutter_platform_widgets library
Classes
- CupertinoAlertDialogData
- CupertinoAppData
- CupertinoAppRouterData
- CupertinoCheckboxData
- CupertinoDatePickerData
- CupertinoDialogActionData
- CupertinoDialogData
- CupertinoElevatedButtonData
- CupertinoIconButtonData
- CupertinoListTileData
- CupertinoModalSheetData
- CupertinoPageData
- CupertinoPageRouteData
- CupertinoPageScaffoldData
- CupertinoPopupMenuCancelButtonData
- CupertinoPopupMenuData
- CupertinoPopupMenuOptionData
- CupertinoProgressIndicatorData
- CupertinoRadioData
- CupertinoSearchBarData
- CupertinoSliderData
- CupertinoSwitchData
- CupertinoTabBarData
- CupertinoTabControllerData
- CupertinoTabScaffoldData
- CupertinoTabViewData
- CupertinoTextButtonData
- CupertinoTextFieldData
- CupertinoTextFormFieldData
- DatePickerContentData
- DefaultCupertinoDatePicker
- MaterialAlertDialogData
- MaterialAppBarData
- MaterialAppData
- MaterialAppRouterData
- MaterialCheckboxData
- MaterialDatePickerData
- MaterialDialogActionData
- MaterialDialogData
- MaterialDialogFlatActionData
- MaterialElevatedButtonData
- MaterialIconButtonData
- MaterialListTileData
- MaterialModalSheetData
- MaterialPageData
- MaterialPageRouteData
- MaterialPopupMenuData
- MaterialPopupMenuOptionData
- MaterialProgressIndicatorData
- MaterialRadioData
- MaterialScaffoldData
- MaterialSearchBarData
- MaterialSliderData
- MaterialSwitchData
- MaterialTabController
- MaterialTabControllerData
- MaterialTabScaffoldData
- MaterialTextButtonData
- MaterialTextFieldData
- MaterialTextFormFieldData
- PlatformAlertDialog
- PlatformApp
- PlatformAppBar
- PlatformCheckbox
- PlatformCircularProgressIndicator
- PlatformDialogAction
- PlatformElevatedButton
- PlatformIconButton
- PlatformIcons
- PlatformListTile
- PlatformPopupMenu
- PlatformProvider
- A Provider that provides access to the functions of switching platforms.
- PlatformProviderState
-
PlatformRadio<
T> - PlatformScaffold
- PlatformSearchBar
- PlatformSettingsData
- PlatformSlider
- PlatformStyleData
- PlatformSwitch
- PlatformTabController
- PlatformTabScaffold
- PlatformText
- PlatformTextButton
- PlatformTextField
- PlatformTextFormField
- PlatformTheme
- PlatformThemeState
- 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
Extensions
Constants
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, bool allowSnapshotting = true, PlatformBuilder< MaterialPageData> ? material, PlatformBuilder<CupertinoPageData> ? cupertino}) → Page -
platformPageRoute<
T> ({required BuildContext context, WidgetBuilder? builder, RouteSettings? settings, bool? maintainState, bool? fullscreenDialog, String? iosTitle, bool allowSnapshotting = true, bool barrierDismissible = false, 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, MaterialDialogData? material, CupertinoDialogData? cupertino, WidgetBuilder? builder, bool? barrierDismissible, RouteSettings? routeSettings, String? barrierLabel, Offset? anchorPoint}) → 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
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)