fast_develop library Null safety

Classes

ApiInterceptor
API
AutoText
AutoWidget
BannerImage
BaseItem
BodyE
Button
CardEx
扩展Card
CConfig
Checkbox
CityPicker
CommonPickerData
选择器数据模型的基类
CompleteData
ContainerEx
扩展模式, 加入自动配置背景色
CountDown
CountDownState
CropPage
裁剪页面
CropVM
DataPicker
数据选择器
DatePickerModel
a date picker model 日期选择器模型
DatePickerTheme
DateTimePickerModel
a date&time picker model 日期和时间选择器模型
DecoUtil
DefaultItem
Describe
描述 左边标题 右边内容
DialogCustom
DialogListSelect
DialogSimple
DialogView
DisposeUtil
销毁资源
DoubleUtil
EditText
FConfig
GlobalValue
GridIntervalView
Http
IConfig
IconText
ImageBrowse
图片浏览
ImgHelp
InputDecorationUtil
IntUtil
ItemData
JudgeData<T>
判断数据
KeyValue<T>
LaunchUtil
ListIntervalView
list 间距
ListKV
LogUtil
MyBody
MyScaffold
NameFunction
NumUtil
OssUtil
PhotoSelect
图片选择
PlatformUtils
PrimaryScrollContainer
https://www.jianshu.com/p/ab473fb8ceb0
PrimaryScrollContainerState
PrimaryScrollControllerWrapper
PrimarySecondary<T>
主次
PSDisplay
主次显示
RatingBar
RespData
RichTextItem
_RichTextWidget 需要用
RichTextStyle
SafePadding
SBorderRadius
ScrollControllerWrapper
ScrollSwitchWidget
Select<T>
SingleColumnData
SingleLine<T>
单行 多用于单行item显示
SMClipper
Spacing
SPHDelegate
持久头用的
StorageManager
StyleText
TextRich
富文本集成
ThemeVM
TimePickerModel
a time picker model 时间选择器模型
TitleAction
TitleVM
TitleWidget
TouchWidget
触摸
UnreadHintWidget
未读提示
WrapperImage
图片显示

Extensions

BoolUtil
DateTimeUtil
ListUtil
MapUtil
ScreenUtils
StringUtil

Constants

DefaultSpace → const Widget
const Text(' : ', style: TextStyle(color: Colors.red))
height → const double
1920
inProduction → const bool
是否资源版本 判断正式与测试
bool.fromEnvironment("dart.vm.product")
width → const double
1080

Properties

isVersion bool
read / write
jsonDecodeCallback JsonDecodeCallback?
read / write
keyDialogAllClear String
read / write
keyDisposeJson String
read / write
keyExtendData String
read / write
keyHint String
read / write
keyIsMore String
read / write
keyJson String
read / write
keyResult String
read / write
keyShowDialog String
read / write
keyShowError String
read / write
keyShowHint String
read / write
keyTotalPage String
read / write
pixelMatching bool
是否不匹配高度
read / write
postDataIsFromData bool
read / write
versionKey String
read / write

Functions

boolOf(dynamic data) bool
consistent(List<RichTextStyle> children, {Color? color}) List<RichTextItem>
decodeBase64(String data) String
Base64解密
delayed([FutureOr computation()?, int time = 100]) → void
延迟 setState() or markNeedsBuild() called during build.
dialogImageSelect(BuildContext ctx, ValueNotifier<File?> photo, {void next()?, num? size, num? paddingChild, num? wirePadding}) → void
doubleOf(dynamic data) double
easyRefresh({required dynamic itemCount, required IndexedWidgetBuilder itemBuilder, EasyRefreshController? controller, OnRefreshCallback? refresh, OnLoadCallback? load, num space = 16, bool slide = true, bool shrinkWrap = false, num mainPadding = 0, num crossPadding = 0, bool fullLine = true, double? cacheExtent, Footer? footer, Header? header}) Widget
easyRefreshList({required List<Widget> children, EasyRefreshController? controller, OnRefreshCallback? refresh, OnLoadCallback? load, num space = 16, bool slide = true, bool isInterval = true, bool shrinkWrap = false, num mainPadding = 0, num crossPadding = 0, bool fullLine = true, double? cacheExtent, Footer? footer, Header? header}) Widget
encodeBase64(String data) String
Base64加密
fromBottom(Animation animation) Offset
fromLeft(Animation animation) Offset
fromRight(Animation animation) Offset
fromTop(Animation animation) Offset
fromTopLeft(Animation anim) Offset
generateMD5(String key) String
getNestedScrollViewInner(BuildContext context) ScrollController?
i18nObjInLocale(LocaleType type) Map<String, dynamic>?
initFastDevelopOfApiInterceptor(ApiInterceptorOnRequest? onRequest, bool? extraSaveJson) → void
initFastDevelopOfData(ToastShow? toastShow) → dynamic
initFastDevelopOfHttp(BaseOptions? baseOptions, JsonDecodeCallback? parseJson, DioInit? dioInit) → void
parseJson必须是顶层函数
initFastDevelopOfRespData(ProcessingExtend? processingExtend, RespDataJson? respDataJson) → void
initFastDevelopOfRootLayout(SwitchThemeBrightness? stb) → dynamic
initFastDevelopOfTitle(IconThemeGenerate? iconThemeGenerate, TextThemeGenerate? textThemeGenerate) → dynamic
intOf(dynamic data) int
listOf<T>(dynamic value, ItemBuild<T> itemBuild) List<T>
listStrOf(dynamic data) List<String>
offsetAnim(OffsetHandle oh) RouteTransitionsBuilder
requestHttp(RequestType type, Http dio, String url, {Map<String, dynamic>? p, bool isShowDialog = false, bool dialogAllClear = false, bool isShowError = true, bool isShowHint = true, bool disposeJson = false, bool? isFromData, Function? notLogin, required RequestSucceed succeed, RequestFailure? failure}) Future<void>
setPixelMatching(bool? isPixelMatching) → void
TODO 宽高比的问题,用来处理平板,未开发完
showDialogCustom<T>({required BuildContext context, required WidgetBuilder builder, Duration? duration, Color barrierColor = Colors.black54, bool barrierDismissible = true, bool cushion = true, double offset = 0, Location location = Location.center, OffsetHandle? offsetHandle, TextStyle? style}) Future<T?>
cushion 垫层 offset偏移值
showToast(String? hint) → void
statusBarReduction() → dynamic
还原标题栏
statusBarTransparent({Brightness brightness = Brightness.dark, Color? color}) → dynamic
透明状态栏
strOf(dynamic data) String
tryCatch(Function? f) → void
valueByType<T>(dynamic value, Type type, {String stack = "", ItemBuild<T>? itemBuild, bool nullable = false, T? dValue}) → dynamic
值转换 dValue 默认值
versionCompare(String local, String cloud) bool

Enums

LocaleType
Location
RequestType
ShowType
TimeType

Typedefs

ApiInterceptorOnRequest = Future<RequestOptions> Function(RequestOptions options, String baseUrl)
ChangeData = void Function(Map<String, dynamic> map)
Child = Widget? Function()
ChildBuild<T> = T Function(BuildContext? context)
ColumnValueKey = int Function()
CreateWidgetList = List<Widget> Function()
DataItemBuild<T extends BaseItem> = T Function(int index, dynamic data)
DateChangedCallback = void Function(CompleteData data)
DioInit = void Function(Dio dio, String baseUrl)
IconThemeGenerate = IconThemeData Function({Brightness brightness, Color color})
生成
ItemBuild<T> = T Function(dynamic data)
子类生成器
OffsetHandle = Offset Function(Animation animation)
ProcessingExtend = Map<String, dynamic> Function(Map<String, dynamic>? json)
RequestFailure = void Function(DioError)
RequestSucceed = void Function(Response)
RespDataJson = dynamic Function(RespData data, Map<String, dynamic> json)
StringAtIndex = String Function(int index)
SwitchThemeBrightness = ThemeData Function(Brightness brightness, ThemeData themeData)
TextThemeGenerate = TextTheme Function({Brightness brightness, Color color})
ToastShow = dynamic Function(String? hint)
TouchTap = void Function(BuildContext context)