UConfig class

Constructors

UConfig({required Color mainColor, String betaApi = '', String releaseApi = '', RoutePushStyle pushStyle = RoutePushStyle.material, Header? pullDownHeader, Footer? pullUpFooter, String? cachePath, Widget placeholder = const BasePlaceholder(), ToastOptions toastOptions = const ToastOptions.extended(alignment: Alignment.center, animationStyle: FlAnimationStyle.verticalHunting, duration: Duration(seconds: 2), ignoring: true), DialogOptions? generalDialogOptions, BottomSheetOptions? bottomSheetOptions, ModalBoxOptions? modalOptions, bool logCrossLine = true, bool? isCloseOverlay, WheelOptions? wheelOptions, LoadingOptions? loadingOptions, Widget? imageFailed, TextThemeStyle? textStyle, TextFieldConfig? textField})

Properties

betaApi String
测试版 url 包含 debug 模式
getter/setter pair
bottomSheetOptions BottomSheetOptions?
全局 BottomSheetOptions 配置信息
getter/setter pair
cachePath String?
保存图片和视频的缓存地址 如不设置 默认通过 Curiosity.native.appPath 获取
getter/setter pair
generalDialogOptions DialogOptions?
全局 DialogOptions 配置信息
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imageFailed Widget?
BaseImage 加载失败时显示的组件
getter/setter pair
isCloseOverlay bool?
全局修改BaseScaffold的 isCloseOverlay 设为true也可禁用侧滑返回
getter/setter pair
loadingOptions LoadingOptions?
loading 样式
getter/setter pair
logCrossLine bool
全局log是否添加分割线
getter/setter pair
mainColor Color
alert 确认按钮颜色 BaseLoading loading 颜色
getter/setter pair
modalOptions ModalBoxOptions?
全局 ModalWindows 组件配置信息
getter/setter pair
placeholder Widget
list 占位图
getter/setter pair
pullDownHeader Header?
当前项目 全局使用的 刷新Header
getter/setter pair
pullUpFooter Footer?
当前项目 全局使用的 刷新Footer
getter/setter pair
pushStyle RoutePushStyle
全局路由跳转样式
getter/setter pair
releaseApi String
正式版 url
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textField TextFieldConfig?
全局设置 BaseTextField 部分配置
getter/setter pair
textStyle TextThemeStyle?
全局设置 TextNormal,TextSmall, TextLarge, TextExtraLarge 字体样式
getter/setter pair
toastOptions ToastOptions
全局 Toast 配置信息
getter/setter pair
wheelOptions WheelOptions?
全局 WheelOptions 配置信息
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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