GetxApp class

GetxAppWidegt

Inheritance
Available extensions

Constructors

GetxApp.new({Key? key, Size designSize = ScreenUtil.defaultSize, bool splitScreenMode = false, bool minTextAdapt = false, bool useInheritedMediaQuery = false, bool ensureScreenSize = false, bool enableScaleWH()?, bool enableScaleText()?, Iterable<String>? responsiveWidgets, Iterable<String>? excludeWidgets, double fontSizeResolver(num, ScreenUtil) = FontSizeResolvers.width, GlobalKey<NavigatorState>? navigatorKey, GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, Widget? home, Map<String, Widget Function(BuildContext)> routes = const <String, WidgetBuilder>{}, String? initialRoute, Route? onGenerateRoute(RouteSettings)?, List<Route> onGenerateInitialRoutes(String)?, Route? onUnknownRoute(RouteSettings)?, List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[], TextDirection? textDirection, String title = '', String onGenerateTitle(BuildContext)?, Color? color, ThemeData? theme, ThemeData? darkTheme, ThemeMode? themeMode, Locale? locale, Locale? fallbackLocale, Iterable<LocalizationsDelegate>? localizationsDelegates, Locale? localeListResolutionCallback(List<Locale>?, Iterable<Locale>)?, Locale? localeResolutionCallback(Locale?, Iterable<Locale>)?, Iterable<Locale> supportedLocales = const <Locale>[Locale('en', 'US')], bool debugShowMaterialGrid = false, bool showPerformanceOverlay = false, bool checkerboardRasterCacheImages = false, bool checkerboardOffscreenLayers = false, bool showSemanticsDebugger = false, bool debugShowCheckedModeBanner = true, Map<LogicalKeySet, Intent>? shortcuts, ScrollBehavior? scrollBehavior, CustomTransition? customTransition, Map<String, Map<String, String>>? translationsKeys, Translations? translations, void onInit()?, void onReady()?, void onDispose()?, void routingCallback(Routing?)?, Transition? defaultTransition, List<GetPage>? getPages, bool? opaqueRoute, bool? enableLog = kDebugMode, void logWriterCallback(String, {bool isError})?, bool? popGesture, Duration? transitionDuration, bool? defaultGlobalState, SmartManagement smartManagement = SmartManagement.full, Bindings? initialBinding, GetPage? unknownRoute, ThemeData? highContrastTheme, ThemeData? highContrastDarkTheme, Map<Type, Action<Intent>>? actions, TransitionBuilder? builder})
const

Properties

actions Map<Type, Action<Intent>>?
final
builder TransitionBuilder?
final
checkerboardOffscreenLayers bool
final
checkerboardRasterCacheImages bool
final
color Color?
final
customTransition CustomTransition?
final
darkTheme ThemeData?
final
debugShowCheckedModeBanner bool
final
debugShowMaterialGrid bool
final
defaultGlobalState bool?
final
defaultTransition Transition?
final
designSize Size
final
enableLog bool?
final
enableScaleText bool Function()?
final
enableScaleWH bool Function()?
final
ensureScreenSize bool
final
excludeWidgets Iterable<String>?
final
fallbackLocale Locale?
final
fontSizeResolver double Function(num, ScreenUtil)
final
getPages List<GetPage>?
final
hashCode int
The hash code for this object.
no setterinherited
highContrastDarkTheme ThemeData?
final
highContrastTheme ThemeData?
final
home Widget?
final
initialBinding Bindings?
final
initialRoute String?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locale Locale?
final
localeListResolutionCallback Locale? Function(List<Locale>?, Iterable<Locale>)?
final
localeResolutionCallback Locale? Function(Locale?, Iterable<Locale>)?
final
localizationsDelegates Iterable<LocalizationsDelegate>?
final
logWriterCallback → void Function(String, {bool isError})?
final
marginZero Widget

Available on Widget, provided by the WidgetMarginX extension

no setter
minTextAdapt bool
final
final
final
onDispose → void Function()?
final
onGenerateInitialRoutes List<Route> Function(String)?
final
onGenerateRoute Route? Function(RouteSettings)?
final
onGenerateTitle String Function(BuildContext)?
final
onInit → void Function()?
final
onReady → void Function()?
final
onUnknownRoute Route? Function(RouteSettings)?
final
opaqueRoute bool?
final
paddingZero Widget

Available on Widget, provided by the WidgetPaddingX extension

no setter
popGesture bool?
final
responsiveWidgets Iterable<String>?
final
routes Map<String, Widget Function(BuildContext)>
final
routingCallback → void Function(Routing?)?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffoldMessengerKey GlobalKey<ScaffoldMessengerState>?
final
scrollBehavior ScrollBehavior?
final
shortcuts Map<LogicalKeySet, Intent>?
final
showPerformanceOverlay bool
final
showSemanticsDebugger bool
final
sliverBox Widget

Available on Widget, provided by the WidgetSliverBoxX extension

no setter
smartManagement SmartManagement
final
splitScreenMode bool
final
supportedLocales Iterable<Locale>
final
textDirection TextDirection?
final
theme ThemeData?
final
themeMode ThemeMode?
final
title String
final
transitionDuration Duration?
final
translations Translations?
final
translationsKeys Map<String, Map<String, String>>?
final
unknownRoute GetPage?
final
useInheritedMediaQuery bool
final

Methods

align(AlignmentGeometry alignment, {Key? key}) Widget

Available on Widget, provided by the ExWidget extension

对齐
alignBottomCenter() Widget

Available on Widget, provided by the ExWidget extension

对齐 底部
alignBottomLeft() Widget

Available on Widget, provided by the ExWidget extension

对齐 下左边
alignBottomRight() Widget

Available on Widget, provided by the ExWidget extension

对齐 下右边
alignCenter() Widget

Available on Widget, provided by the ExWidget extension

对齐 中间
alignCenterLeft() Widget

Available on Widget, provided by the ExWidget extension

对齐 左边
alignCenterRight() Widget

Available on Widget, provided by the ExWidget extension

对齐 右边
alignTopCenter() Widget

Available on Widget, provided by the ExWidget extension

对齐 顶部居中
alignTopLeft() Widget

Available on Widget, provided by the ExWidget extension

对齐 上左边
alignTopRight() Widget

Available on Widget, provided by the ExWidget extension

对齐 上右边
aspectRatio({Key? key, required double aspectRatio}) Widget

Available on Widget, provided by the ExWidget extension

比例布局
backgroundColor(Color color, {Key? key}) Widget

Available on Widget, provided by the ExWidget extension

背景颜色
backgroundImage(DecorationImage image, {Key? key}) Widget

Available on Widget, provided by the ExWidget extension

背景图片
border({Key? key, double? all, double? left, double? right, double? top, double? bottom, double? radius, Color? backgroundColor, Color color = const Color(0xFF000000), BorderStyle style = BorderStyle.solid}) Widget

Available on Widget, provided by the ExWidget extension

边框
boxShadow({Key? key, Color color = Colors.black, Offset offset = Offset.zero, double blurRadius = 0.0, double spreadRadius = 0.0, BlurStyle blurStyle = BlurStyle.normal}) Widget

Available on Widget, provided by the ExWidget extension

阴影
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
card({Key? key, Color? color, Color? shadowColor, Color? surfaceTintColor, double? elevation = 5, ShapeBorder? shape, bool borderOnForeground = true, EdgeInsetsGeometry? margin, Clip? clipBehavior = Clip.antiAlias, bool semanticContainer = true}) Widget

Available on Widget, provided by the ExWidget extension

卡片布局
center({Key? key, double? widthFactor, double? heightFactor}) Widget

Available on Widget, provided by the ExWidget extension

居中布局
clipOval({Key? key}) Widget

Available on Widget, provided by the ExWidget extension

裁剪圆形
clipRect({Key? key, CustomClipper<Rect>? clipper, Clip clipBehavior = Clip.hardEdge}) Widget

Available on Widget, provided by the ExWidget extension

裁剪矩形
clipRRect({Key? key, double? all, double? topLeft, double? topRight, double? bottomLeft, double? bottomRight, CustomClipper<RRect>? clipper, Clip clipBehavior = Clip.antiAlias}) Widget

Available on Widget, provided by the ExWidget extension

裁剪圆角
constrained({Key? key, double? width, double? height, double minWidth = 0.0, double maxWidth = double.infinity, double minHeight = 0.0, double maxHeight = double.infinity}) Widget

Available on Widget, provided by the ExWidget extension

约束
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
decorated({Key? key, Color? color, DecorationImage? image, BoxBorder? border, BorderRadius? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape shape = BoxShape.rectangle, DecorationPosition position = DecorationPosition.background}) Widget

Available on Widget, provided by the ExWidget extension

盒子装饰器
elevation(double elevation, {Key? key, BorderRadiusGeometry borderRadius = BorderRadius.zero, Color shadowColor = const Color(0xFF000000)}) Widget

Available on Widget, provided by the ExWidget extension

阴影
expand({Key? key, int flex = 1}) Widget

Available on Widget, provided by the ExWidget extension

expand 撑满
fittedBox({Key? key, BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.centerLeft, Clip clipBehavior = Clip.none}) Widget

Available on Widget, provided by the ExWidget extension

缩放布局
flexible({Key? key, int flex = 1, FlexFit fit = FlexFit.loose}) Widget

Available on Widget, provided by the ExWidget extension

弹性布局
fractionallySizedBox({Key? key, AlignmentGeometry alignment = Alignment.center, double? widthFactor, double? heightFactor}) Widget

Available on Widget, provided by the ExWidget extension

百分比布局
gestures({Key? key, GestureOnTapChangeCallback? onTapChange, GestureTapDownCallback? onTapDown, GestureTapUpCallback? onTapUp, GestureTapCallback? onTap, GestureTapCancelCallback? onTapCancel, GestureTapDownCallback? onSecondaryTapDown, GestureTapUpCallback? onSecondaryTapUp, GestureTapCancelCallback? onSecondaryTapCancel, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, GestureLongPressStartCallback? onLongPressStart, GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate, GestureLongPressUpCallback? onLongPressUp, GestureLongPressEndCallback? onLongPressEnd, GestureDragDownCallback? onVerticalDragDown, GestureDragStartCallback? onVerticalDragStart, GestureDragUpdateCallback? onVerticalDragUpdate, GestureDragEndCallback? onVerticalDragEnd, GestureDragCancelCallback? onVerticalDragCancel, GestureDragDownCallback? onHorizontalDragDown, GestureDragStartCallback? onHorizontalDragStart, GestureDragUpdateCallback? onHorizontalDragUpdate, GestureDragEndCallback? onHorizontalDragEnd, GestureDragCancelCallback? onHorizontalDragCancel, GestureDragDownCallback? onPanDown, GestureDragStartCallback? onPanStart, GestureDragUpdateCallback? onPanUpdate, GestureDragEndCallback? onPanEnd, GestureDragCancelCallback? onPanCancel, GestureScaleStartCallback? onScaleStart, GestureScaleUpdateCallback? onScaleUpdate, GestureScaleEndCallback? onScaleEnd, GestureForcePressStartCallback? onForcePressStart, GestureForcePressPeakCallback? onForcePressPeak, GestureForcePressUpdateCallback? onForcePressUpdate, GestureForcePressEndCallback? onForcePressEnd, HitTestBehavior? behavior, bool excludeFromSemantics = false, DragStartBehavior dragStartBehavior = DragStartBehavior.start}) Widget

Available on Widget, provided by the ExWidget extension

手势
height(double height, {Key? key}) Widget

Available on Widget, provided by the ExWidget extension

约束高度
inkWell({Key? key, Color? color, double? borderRadius, dynamic onTap()?, dynamic onLongPress()?}) Widget

Available on Widget, provided by the ExWidget extension

墨水纹
limitedBox({Key? key, double maxWidth = double.infinity, double maxHeight = double.infinity}) Widget

Available on Widget, provided by the ExWidget extension

限制盒子 最大宽高
marginAll(double margin) Widget

Available on Widget, provided by the WidgetMarginX extension

marginOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) Widget

Available on Widget, provided by the WidgetMarginX extension

marginSymmetric({double horizontal = 0.0, double vertical = 0.0}) Widget

Available on Widget, provided by the WidgetMarginX extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offstage({Key? key, bool offstage = true}) Widget

Available on Widget, provided by the ExWidget extension

隐藏但正常构建
onLongPress(GestureTapCallback? onLongPress, {Key? key, HitTestBehavior? behavior, bool excludeFromSemantics = false, DragStartBehavior dragStartBehavior = DragStartBehavior.start}) Widget

Available on Widget, provided by the ExWidget extension

长按
onTap(GestureTapCallback? onTap, {Key? key, HitTestBehavior? behavior, bool excludeFromSemantics = false, DragStartBehavior dragStartBehavior = DragStartBehavior.start}) Widget

Available on Widget, provided by the ExWidget extension

点击
opacity(double opacity, {Key? key, bool alwaysIncludeSemantics = false}) Widget

Available on Widget, provided by the ExWidget extension

透明度
overflow({Key? key, AlignmentGeometry alignment = Alignment.center, double? minWidth, double? maxWidth, double? minHeight, double? maxHeight}) Widget

Available on Widget, provided by the ExWidget extension

溢出
padding({Key? key, EdgeInsetsGeometry? value, double? all, double? horizontal, double? vertical, double? top, double? bottom, double? left, double? right}) Widget

Available on Widget, provided by the ExWidget extension

内间距
paddingAll(double padding) Widget

Available on Widget, provided by the WidgetPaddingX extension

paddingOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) Widget

Available on Widget, provided by the WidgetPaddingX extension

paddingSymmetric({double horizontal = 0.0, double vertical = 0.0}) Widget

Available on Widget, provided by the WidgetPaddingX extension

positioned({Key? key, double? left, double? top, double? right, double? bottom, double? width, double? height}) Widget

Available on Widget, provided by the ExWidget extension

Stack布局 位置
ripple({Key? key, Color? focusColor, Color? hoverColor, Color? highlightColor, Color? splashColor, InteractiveInkFeatureFactory? splashFactory, double? radius, ShapeBorder? customBorder, bool enableFeedback = true, bool excludeFromSemantics = false, FocusNode? focusNode, bool canRequestFocus = true, bool autoFocus = false, bool enable = true}) Widget

Available on Widget, provided by the ExWidget extension

涟漪
safeArea({Key? key, bool top = true, bool bottom = true, bool left = true, bool right = true}) Widget

Available on Widget, provided by the ExWidget extension

安全区域
scale({Key? key, double? all, double? x, double? y, Offset? origin, AlignmentGeometry alignment = Alignment.center, bool transformHitTests = true}) Widget

Available on Widget, provided by the ExWidget extension

比例缩放
scrollable({Key? key, Axis scrollDirection = Axis.vertical, bool reverse = false, bool? primary, ScrollPhysics? physics = const ClampingScrollPhysics(), ScrollController? controller, DragStartBehavior dragStartBehavior = DragStartBehavior.start, EdgeInsetsGeometry? padding}) Widget

Available on Widget, provided by the ExWidget extension

滚动视图
scrollbar({Key? key, ScrollController? controller, bool? thumbVisibility, bool? trackVisibility, double? thickness, Radius? radius, bool notificationPredicate(ScrollNotification)?, bool? interactive, ScrollbarOrientation? scrollbarOrientation}) Widget

Available on Widget, provided by the ExWidget extension

滚动条
sliver({Key? key}) Widget

Available on Widget, provided by the ExWidget extension

SliverToBoxAdapter
sliverPadding({Key? key, EdgeInsetsGeometry? value, double? all, double? horizontal, double? vertical, double? top, double? bottom, double? left, double? right}) Widget

Available on Widget, provided by the ExWidget extension

Sliver 内间距
sliverPaddingBottom(double val) Widget

Available on Widget, provided by the ExWidget extension

内间距 下
sliverPaddingHorizontal(double val) Widget

Available on Widget, provided by the ExWidget extension

内间距 横向
sliverPaddingLeft(double val) Widget

Available on Widget, provided by the ExWidget extension

内间距 左
sliverPaddingRight(double val) Widget

Available on Widget, provided by the ExWidget extension

内间距 右
sliverPaddingTop(double val) Widget

Available on Widget, provided by the ExWidget extension

内间距 上
sliverPaddingVertical(double val) Widget

Available on Widget, provided by the ExWidget extension

内间距 纵向
tight({double? width, double? height, double? size, Key? key}) Widget

Available on Widget, provided by the ExWidget extension

约束宽高
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
tooltip({Key? key, String? message, InlineSpan? richMessage, double? height, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, double? verticalOffset, bool? preferBelow, bool? excludeFromSemantics, Decoration? decoration, TextStyle? textStyle, TextAlign? textAlign, Duration? waitDuration, Duration? showDuration, Duration? exitDuration, bool? enableTapToDismiss, TooltipTriggerMode? triggerMode, bool? enableFeedback, void onTriggered()?}) Widget

Available on Widget, provided by the ExWidget extension

toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
transform({Key? key, required Matrix4 transform, Offset? origin, AlignmentGeometry? alignment, bool transformHitTests = true}) Widget

Available on Widget, provided by the ExWidget extension

Transforms Matrix4
translate({Key? key, required Offset offset, bool transformHitTests = true}) Widget

Available on Widget, provided by the ExWidget extension

Translate 变化位置
unConstrained({Key? key, TextDirection? textDirection, AlignmentGeometry alignment = Alignment.center, Axis? constrainedAxis, Clip clipBehavior = Clip.none}) Widget

Available on Widget, provided by the ExWidget extension

取消父级约束
visibility({Key? key, required bool visible, bool maintainSize = false, bool maintainState = false, bool maintainAnimation = false}) Widget

Available on Widget, provided by the ExWidget extension

控制组件隐藏显示
width(double width, {Key? key}) Widget

Available on Widget, provided by the ExWidget extension

约束宽度

Operators

operator ==(Object other) bool
The equality operator.
inherited