ProjectConfig class
Constructors
- ProjectConfig({required Color mainColor, String betaApi = '', String releaseApi = '', RoutePushStyle pushStyle = RoutePushStyle.material, Header? pullDownHeader, Color? scaffoldBackground, AppBarConfig? appBarConfig, String? cachePath, Widget placeholder = const BasicPlaceholder(), ToastOptions toastOptions = const ToastOptions(positioned: Alignment.topCenter, duration: Duration(seconds: 2), ignoring: true), DialogOptions? generalDialogOptions, BottomSheetOptions? bottomSheetOptions, ModalWindowsOptions? modalWindowsOptions, bool logCrossLine = true, WheelOptions? wheelOptions, ModalWindowsOptions? loadingModalWindowsOptions, LoadingCoreBuilder? loadingBuilder, Widget? imageFailed, TextColor? textColor})
Properties
- appBarConfig ↔ AppBarConfig?
-
当前项目 全局使用的 BasicAppBar
getter/setter pair
- 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?
-
BasicImage 加载失败时显示的组件
getter/setter pair
- loadingBuilder ↔ LoadingCoreBuilder?
-
getter/setter pair
- loadingModalWindowsOptions ↔ ModalWindowsOptions?
-
loading 样式
getter/setter pair
- logCrossLine ↔ bool
-
全局log是否添加分割线
getter/setter pair
- mainColor ↔ Color
-
alert 确认按钮颜色
BasicLoading loading 颜色
getter/setter pair
- modalWindowsOptions ↔ ModalWindowsOptions?
-
全局 ModalWindows 组件配置信息
getter/setter pair
- placeholder ↔ Widget
-
list 占位图
getter/setter pair
- pullDownHeader ↔ Header?
-
当前项目 全局使用的 刷新Header
getter/setter pair
-
当前项目 全局使用的 刷新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
- scaffoldBackground ↔ Color?
-
当前项目 全局使用的 BasicScaffold 的背景色
getter/setter pair
- textColor ↔ TextColor?
-
字体颜色
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