fast_develop
library
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, })
→ 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, })
→ 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, )
→ 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
-
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)
-