dd_js_util library
Classes
- AlwaysScrollableClampingScrollPhysics
- AndroidPlatform
- AppLocalSettingModel
-
选择的模式
0
- 跟随系统 (默认)1
- 亮色模式2
- 深色模式 - AppLocalSettingModelAdapter
- AskIntDialog
- AskIntDialogParams
- AskOkDialog
- 询问弹窗
- AskOkDialogParams
- AskStringDialog
- AskStringDialogParams
-
BaseApi<
T> - BaseApiBadCertificateException
- BaseApiBadResponseException
- BaseApiBusinessException
- BaseApiCancelException
- BaseApiConnectionErrorException
- BaseApiConnectionTimeoutException
-
BaseApiDialog<
M, A extends BaseApi< M> > - BaseApiDialogBuilder
- BaseApiException
- BaseApiReceiveTimeoutException
- BaseApiSendTimeoutException
- BodyExpandedWidget
- BoolData
- ByteModel
- BytesModel
-
CacheBase<
E> - CacheFactory
- CalendarDatePicker
- Displays a grid of days for a given month and allows the user to select a date.
- CountDown
- 倒计时组件
- CountDownController
- CupertinoDatePicker
- A date picker widget in iOS style.
- CupertinoTimerPicker
- A countdown timer picker in iOS style.
- DartTypeModel
- DateParseModel
- DatePickerModeToggleButton
- A button that used to toggle the DatePickerMode for a date picker.
- DatePickerModeToggleButtonState
- DayPickerState
- DdJsUtil
- Doc
- 主动显示的注解
- DynamicData
- EditPage
- 使用这个组件包裹的组件,点击TextFiled之外的位置可以取消输入框焦点
- ExpandedRow
- FBuildWidget
- FetchRawByUrl
- 加载原始数据
- FFConvert
- FlipCardComponent
- FlipCardComponentController
- FlipCardComponentState
- FloatBuild
- FloatContainer
- FloatController
- FreezedTool
- freezed工具
- FuchsiaPlatform
- GbModel
- HideKeyBoardIcon
- 隐藏键盘的小部件
-
HiveConsumerWidget<
S> - HiveUtil
- HtmlTitleAndIconModel
- IfWidget
- ImageAddIcon
- ImageDefaultShow
- ImageEx
- ImageParams
- ImagePreview
- ImageUtil
- ImageView
- base 64 图片的展示
- IosPlatform
- JsonData
- JsonStringData
- KbModel
- KEmptyErrorWidget
- KeyBoardDefaultHeight
- KPermissionUtil
- 权限申请工具类
- LazyIndexedStack
- A lazy-IndexedStack written by Alex Li 💙. it lazily build children only when they are first activated.
- LinuxPlatform
- ListData
- MacosPlatform
- MbModel
- MinRows
- MonthPicker
- MonthPickerState
- MyAssetImage
- MyBase64Image
- MyFilePathImage
- MyImage
- MyIntUtil
- MyLocalizationsDelegate
- MyNetworkImage
- MyPlatform
- MySwiperPlugin
- MyTimePicker
- MyYearPicker
- A scrollable grid of years to allow picking a year.
- MyZhCupertinoLocalizations
- NoShadowScrollBehavior
- 隐藏水波纹配置
- NoSplashFactory
- NullData
-
NullWidget<
T> - NumData
- PicSwiper
- PicSwiperState
- PictureSelection
- 图片选择组件
- PictureSelectionController
- 图片选择器控制器类
- PictureSelectionI18nConfig
- PictureSelectionItemModel
- 图片选择器模型
- RecordWidget
- 录音小部件
-
RefreshController<
T> - RequestParams
-
RightPopupMenuButton<
T> - Displays a menu when pressed and calls onSelected when the menu is dismissed because an item was selected. The value passed to onSelected is the value of the selected menu item.
-
RightPopupMenuButtonState<
T> - The State for a PopupMenuButton.
-
SearchSupport<
T> - 超级搜索
- SimpleAppbar
- SimpleInputWrapper
-
SimpleListTileWidget<
T> - 简单的列表构建布局
- Skeleton
- SkeletonState
- StringData
- SwitchAnimShow
- TbModel
- ThemeBuildWidget
- ThemeItemShow
- ThemeSettingPage
- 主题设置页面
-
TResult<
T> - WebPlatform
- WindowsPlatform
- WrapJson
- XXFile
- XXImage
Enums
- CupertinoDatePickerMode
- Different display modes of CupertinoDatePicker.
- CupertinoTimerPickerMode
- Different modes of CupertinoTimerPicker.
- FlipCardShowType
- 要展示的面
- HttpMethod
- PageState
- RecordState
- 录音状态
Mixins
-
ApiMixin<
M, T extends BaseApi< M> , S extends StatefulWidget> -
BasePagedApiMixin<
T> - 分页api
-
DialogSupport<
T extends StatefulWidget> - 添加系列弹窗支持
-
JsonWrapWidget<
W extends StatefulWidget, T extends BaseApi, R extends WrapJson> -
KeyboardMixin<
T extends ConsumerStatefulWidget> -
MyBasePage<
T extends BaseApi, S, W extends StatefulWidget, R> - 页面所需要的基本数据
-
SimplePageUtilMixin<
T extends StatefulWidget> - WidgetBodyBuildMixin
Extensions
- AppLocalSettingModelEx on AppLocalSettingModel
- AskStringDialogEx on BuildContext
- BoolExt on bool
- BuildContextExt on BuildContext
- ByteModelEx on ByteModel
- CircleExt on Widget
- ContextExt on BuildContext
- DartTypeModelDynEx on dynamic
-
DdRefEx
on Ref<
AsyncValue< T> > - DoubleExt on double
- DynamicEx on T?
- DynamicExt on dynamic
- FunctionExt on VoidCallback
-
IListEx
on IList<
T> - ImageExExt on String
- ImageParamsEx on ImageParams
-
IMapEx
on IMap<
K, V> - IntExt on int
- JsonStringDataEx on JsonStringData
- ListExt on List
-
MapExt
on Map<
String, dynamic> -
MapExt2
on Map<
String, Object> - MapExt3 on Map
- MyPlatformEx on MyPlatform
- MyRef on WidgetRef
-
ObjectObjectExt
on Map<
Object?, Object?> - PictureSelectionItemModelEx on PictureSelectionItemModel
- RequestParamsex on RequestParams
- StringExt on String
- 对字符串的扩展
- StringExtension on String
- 字符串相关扩展
- Tex3 on T?
- ThemeModeEx on ThemeMode
- WidgetExt on Widget
- WidgetTa on Widget
Constants
- igFreezedJson → const JsonKey
- kMultipartFormDataHeader → const String
- kProtobufContentType → const String
Properties
- k24Height → Widget
-
no setter
-
myKeyBoardHeight
→ StateProvider<
double> -
final
- myPlatform → MyPlatform
-
no setter
Functions
-
asT<
T extends Object?> (dynamic value, [T? defaultValue]) → T? -
customStampStr(
{int? timestamp, String? date, bool toInt = true}) → String -
decodeModelOrNull<
T> (String jsonString, T decode(Map< String, dynamic> jsonMap)) → T? -
deepCastMap(
Map< Object?, Object?> original) → Map<String, dynamic> - 递归处理函数
-
delayFunction(
DelayFetch call, [int? milliseconds]) → void - 延迟加载请求 一般在initState里面使用,执行初始化的一些操作 比如发起请求
-
getRandomColor(
) → Color -
ifCall(
bool value, VoidCallback call) → void -
isValue<
T> (dynamic value) → T? -
kLog(
dynamic msg) → void -
kLogErr(
dynamic m) → void -
logCurrentTime(
[String? msg]) → void -
myPrintFormattedJson(
dynamic jsonObject, {bool doPrint = true}) → String -
nullCall<
T> (T? value, void call(T value)) → void -
梁典典: 判空执行
如果
value
不为空,将会在call
函数中回调出去可以省略null判断
-
removeDuplicateParams(
String url) → String - 请求参数去重
-
showIosDialog(
String msg, {String okText = 'Done', List< Widget> ? startActions, List<Widget> ? endActions, Widget? title, String cancelText = 'Cancel', Widget? content}) → void -
showToast(
String msg) → void -
toast(
String msg) → void -
tryCatch(
Function? f) → void -
tryCoverList(
String result, String paramsKey) → List -
tryString2Model<
T> (String data, T parse(Map< String, dynamic> json), T orElse()) → T -
wtfLog(
dynamic msg) → void
Typedefs
- BaseApiDialogErrorHandle = String Function(Object exception, Object errorStack)
- BaseApiOption = BaseOptions
- BoolBuild = bool Function()
- BuildWidget = Widget Function(BoxConstraints size, Widget child)
- BuildWidgetFun = Widget Function()
-
CacheBaseBoxHandle<
E> = Future< void> Function(Box<E> box) - CallIf = bool Function()
- CountDownBuilder = Widget Function(BuildContext context, int day, int hour, int minute, int seconds, int millisecond)
-
CustomBuildThemeItems
= Widget Function(BuildContext context, List<
CustomAppThemeData> themes) - CustomCompletedWidget = Widget? Function(ExtendedImageState state, ImageParams params, Widget child)
- CustomRecordWidget = Widget Function(RecordState recordState)
-
自定义的小部件构建
recordState
- 组件状态回调,可以根据状态来显示不同的组件 -
CustomRenderBody
= Widget Function(List<
PictureSelectionItemModel> images, PictureSelectionController controller, bool showAddButton) - 自定义构建
-
CustomRenderWidget
= Widget Function(BuildContext context, List<
Widget> child) - DelayFetch = void Function()
-
DioStart
= Future<
void> Function(Dio dio, String url) - FocusNodeWidgetBuilder = Widget Function(FocusNode focusNode)
-
HiveUpdateModel<
E> = E Function(E? oldValue) - IfBuild = Widget Function()
- ImageItemRender = Widget Function(BuildContext context, PictureSelectionItemModel file, Size size, dynamic onRemove(PictureSelectionItemModel file))
- 自定义渲染布局 (file)
-
InterceptorCall
= ISet<
Interceptor> Function(ISet<Interceptor> old) - ItemBuild = Widget Function(BuildContext context, int index, bool isEmpty)
- KeyboardActionsConfigBuilder = KeyboardActionsConfig Function(KeyboardActionsConfig defaultConfig, FocusNode focusNode, BuildContext context)
- LB = BaseApiDialogBuilder
- MenusBuilder = Widget Function(Function imagePicker, Function cameraPicker)
-
自定义选择菜单
imagePicker
- 用户选择了相册回调函数cameraPicker
- 用户选择了拍摄回调函数 -
MyConstList<
T> = IListConst< T> -
MyConstMap<
K, V> = IMapConst< K, V> - MyFormData = FormData
-
MyHiveBox<
T> = Box< T> - MyIndicatorStatus = IndicatorStatusModel
- MyInterceptor = Interceptor
- MyInterceptorWrapper = InterceptorsWrapper
-
MyList<
T> = IList< T> -
MyListConfig<
T> = ListConfig< T> -
MyLoadingModel<
T> = LoadingModel< T> - loading more 组件
- MyLoadingMoreCustomScrollView = LoadingMoreCustomScrollView
-
MyLoadingMoreList<
T> = LoadingMoreList< T> -
MyLoadingMoreSliverList<
T> = LoadingMoreSliverList< T> -
MyMap<
K, V> = IMap< K, V> - MyMultipartFile = MultipartFile
-
MySliverListConfig<
T> = SliverListConfig< T> - MySliverWaterfallFlowDelegateWithFixedCrossAxisCount = SliverWaterfallFlowDelegateWithFixedCrossAxisCount
- MySwiper = Swiper
- MySwiperPluginIndexBuilder = Widget Function(int current, int totalCount)
-
PictureSelectionRemoveFile
= Future<
bool> Function(PictureSelectionItemModel file) - 删除图片事件 bool - 返回true 表示删除成功,false为删除失败
- PlaceholderBuilder = Widget Function(Size size)
-
自定义占位布局小部件
也就是替换默认的+号小部件
size
- 组件宽高 - PM = PictureSelectionItemModel
- PopupMenuCanceled = void Function()
- Signature for the callback invoked when a PopupMenuButton is dismissed without selecting an item.
-
PopupMenuItemBuilder<
T> = List< PopupMenuEntry< Function(BuildContext context)T> > - Signature used by PopupMenuButton to lazily construct the items shown when the button is pressed.
-
PopupMenuItemSelected<
T> = void Function(T value) - Signature for the callback invoked when a menu item is selected. The argument is the value of the PopupMenuItem that caused its menu to be dismissed.
- R = RequestParams
- ReLoginSuccess = void Function()
- ResponseResultCallback = void Function(dynamic response)
-
SearchSupportConfig<
T> = SliverListConfig< T> -
SearchSupportItemBuilder<
T> = Widget Function(BuildContext context, T item, int index, bool isSelect) -
SearchSupportRepository<
T> = LoadingMoreBase< T> - SearchSupportScrollView = LoadingMoreCustomScrollView
-
SearchSupportSliverList<
T> = LoadingMoreSliverList< T> - SecondBuild = Widget Function(int seconds)
-
SimpleListTileWidgetItemBuild<
T> = Widget Function(BuildContext context, T item) - TakeIfFun = bool Function()
- ThemeBuild = Widget Function(AppLocalSettingModel theme)
- ToastWrapper = FlutterSmartDialog
- UrlParseFormat = String Function(String uri, dynamic queryParameters)
-
ValueCopyWith<
T> = T Function(T value) - WidgetBuilder = Widget Function()
-
WidgetRenderT<
T> = Widget Function(T value)