sunny_platform_widgets
library
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, })
→ Page<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
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, 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, 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})
-