ProjectConfig constructor
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,
Implementation
ProjectConfig({
required this.mainColor,
this.betaApi = '',
this.releaseApi = '',
this.pushStyle = RoutePushStyle.material,
this.pullDownHeader,
this.pullUpFooter,
this.scaffoldBackground,
this.appBarConfig,
this.cachePath,
this.placeholder = const BasicPlaceholder(),
this.toastOptions = const ToastOptions(
positioned: Alignment.topCenter,
duration: Duration(seconds: 2),
ignoring: true),
this.generalDialogOptions,
this.bottomSheetOptions,
this.modalWindowsOptions,
this.logCrossLine = true,
this.wheelOptions,
this.loadingModalWindowsOptions,
this.loadingBuilder,
this.imageFailed,
this.textColor,
}) {
pullDownHeader ??= const ClassicHeader(
dragText: '请尽情拉我',
armedText: '可以松开我了',
readyText: '我要开始刷新了',
processingText: '我在拼命刷新中',
processedText: '我已经刷新完成了',
failedText: '我刷新失败了唉',
noMoreText: '没有更多了',
showMessage: false);
pullUpFooter ??= const ClassicFooter(
dragText: '请尽情拉我',
armedText: '可以松开我了',
readyText: '我要准备加载了',
processingText: '我在拼命加载中',
processedText: '我已经加载完成了',
failedText: '我加载失败了唉',
noMoreText: '没有更多了哦',
showMessage: false);
}