WidgetsFrameworkBuildContextEx<T extends BuildContext> extension

on
  • T

Properties

arguments Object?

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
canPop bool

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
currentFocus FocusScopeNode

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
height double

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
messenger ScaffoldMessengerState

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
scaffold ScaffoldState

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
screenH double

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
screenW double

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
theme ThemeData

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
title String

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter
width double

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

no setter

Methods

closeKeyboard() → void

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

收起键盘
hiddenStatuBar() → void

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

隐藏状态栏
openDrawer() → void

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

打开左抽屉
openEndDrawer() → void

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

打开右抽屉
pop({dynamic arguments}) Future

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

出栈
popToName({String? name, Object? arguments}) Future<void>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

出栈到指定界面
setLandscape() → void

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

设置为竖屏
setPortrait() → void

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

设置为横屏
show({required Widget builder(BuildContext), bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings}) Future<T?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showDialog
showAbout({String? applicationName, String? applicationVersion, Widget? applicationIcon, String? applicationLegalese, List<Widget>? children, bool useRootNavigator = true, RouteSettings? routeSettings}) → void

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showAboutDialog
showGeneral({required Widget pageBuilder(BuildContext, Animation<double>, Animation<double>), bool barrierDismissible = false, String? barrierLabel, Color barrierColor = const Color(0x80000000), Duration transitionDuration = const Duration(milliseconds: 200), Widget transitionBuilder(BuildContext, Animation<double>, Animation<double>, Widget)?, bool useRootNavigator = true, RouteSettings? routeSettings}) Future<T?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showIosDialog({required Widget builder(BuildContext), String? barrierLabel, bool useRootNavigator = true, bool barrierDismissible = false, RouteSettings? routeSettings}) Future<T?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showCupertinoDialog
showIosModalPopup({required Widget builder(BuildContext), ImageFilter? filter, Color barrierColor = kCupertinoModalBarrierColor, bool barrierDismissible = true, bool useRootNavigator = true, bool semanticsDismissible = false, RouteSettings? routeSettings}) Future<T?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showCupertinoModalPopup
showMyBottomSheet({required Widget builder(BuildContext), Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, BoxConstraints? constraints, AnimationController? transitionAnimationController}) PersistentBottomSheetController

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showMyDatePicker({required DateTime initialDate, required DateTime firstDate, required DateTime lastDate, DateTime? currentDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, bool selectableDayPredicate(DateTime)?, String? helpText, String? cancelText, String? confirmText, Locale? locale, bool useRootNavigator = true, RouteSettings? routeSettings, TextDirection? textDirection, Widget builder(BuildContext, Widget?)?, DatePickerMode initialDatePickerMode = DatePickerMode.day, String? errorFormatText, String? errorInvalidText, String? fieldHintText, String? fieldLabelText}) Future<DateTime?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showDatePicker
showMyDateRangePicker({DateTimeRange<DateTime>? initialDateRange, required DateTime firstDate, required DateTime lastDate, DateTime? currentDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, String? helpText, String? cancelText, String? confirmText, String? saveText, String? errorFormatText, String? errorInvalidText, String? errorInvalidRangeText, String? fieldStartHintText, String? fieldEndHintText, String? fieldStartLabelText, String? fieldEndLabelText, Locale? locale, bool useRootNavigator = true, RouteSettings? routeSettings, TextDirection? textDirection, Widget builder(BuildContext, Widget?)?}) Future<DateTimeRange<DateTime>?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showDateRangePicker
showMyLicensePage({String? applicationName, String? applicationVersion, Widget? applicationIcon, String? applicationLegalese, bool useRootNavigator = false}) → void

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showLicensePage
showMyMenu({required RelativeRect position, required List<PopupMenuEntry<T>> items, T? initialValue, double? elevation, String? semanticLabel, ShapeBorder? shape, Color? color, bool useRootNavigator = false}) Future<T?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showMenu
showMyModalBottomSheet({required Widget builder(BuildContext), Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, BoxConstraints? constraints, Color? barrierColor, bool isScrollControlled = false, bool useRootNavigator = false, bool isDismissible = true, bool enableDrag = true, RouteSettings? routeSettings, AnimationController? transitionAnimationController}) Future<T?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showModalBottomSheet
showMySearch({required SearchDelegate<T> delegate, String? query = '', bool useRootNavigator = false}) Future<T?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showSearch
showMyTimePicker({required TimeOfDay initialTime, Widget builder(BuildContext, Widget?)?, bool useRootNavigator = true, TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial, String? cancelText, String? confirmText, String? helpText, String? errorInvalidText, String? hourLabelText, String? minuteLabelText, RouteSettings? routeSettings, void onEntryModeChanged(TimePickerEntryMode)?}) Future<TimeOfDay?>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

showTimePicker
showSnack(String text) Future<void>

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

展示提示
showStatuBar() → void

Available on T, provided by the WidgetsFrameworkBuildContextEx extension

显示状态栏