component/index library
Classes
- CheckFormItem
- CusBehavior
- CustomFloatingActionButtonAnimator
- CustomFloatingActionButtonLocation
- DateFormats
- 一些常用格式参照。可以自定义格式,例如:'yyyy/MM/dd HH:mm:ss','yyyy/M/d HH:mm:ss'。 格式要求 year -> yyyy/yy month -> MM/M day -> dd/d hour -> HH/H minute -> mm/m second -> ss/s
- DateUtil
- Date Util.
- GlobalConfig
- HexToColor
- JhPickerTool
- Loading
- LoadingConfig
- Log
- MyCurve
- MYCustomTrace
- MyNumberTextInputFormatter
- radioParams
- radioParamsValue
- ScreenUtil
- SelectDateTimeEntity
- SelectTypeEntity
- Sesstion
- 封装SharedPreferences为单例模式
- showBottomAlertCustomWidget
- ShowCustomAlterWidget
- ShowInputAlertWidget
- ShowTipsAlterWidget
- TableColumn
- TableConfig
- ThemeColor
- TimeFormat
- TipsAlterHeightAutoWidget
- Toast
- ToastLayoutStyle
- XAlert
- XAppBar
- XAppBarX
- XBottomAppBarConfig
- XButton
- XCheckBox
- XCheckBoxGroup
- XComputer
- XCustomScrollView
- XCustomScrollViewAppbar
- XCustomScrollViewState
- XDivision
- XForm
- XFormItem
- XImage
- XInput
- XLabel
- XLabelConfig
- XMyEmpty
- XP
- XPaginatedTable
- XPConfig
- XRadio
- XSelectDateTime
- XSelectInput
- XSlider
- XTable
- XText
- 处理安卓 单行是字体下掉问题
- XUnderlineTabIndicator
- Used with TabBar.indicator to draw a horizontal line below the selected tab.
Extensions
- BuildContextExt on BuildContext
- ExtAlign on Widget
- Align布局位置扩展
- ExtBg on Widget
-
ExtIterable
on Iterable<
T> -
ExtList
on List<
T> - ExtSpace on Widget
-
GlobalKeyExt
on GlobalKey<
State< StatefulWidget> > - SizeExtension on num
Constants
- kBtnColor → const Color
- kItemHeight → const double
- kPickerHeight → const double
- kTextFontSize → const double
- kTitleColor → const Color
Properties
- enable ↔ bool
-
函数节流
getter/setter pair
- globalConfig ↔ GlobalConfig
-
getter/setter pair
- iconAccount ↔ Widget
-
getter/setter pair
- iconPassword ↔ Widget
-
getter/setter pair
-
MONTH_DAY
↔ Map<
int, int> -
month->days.
getter/setter pair
- themeColor ↔ ThemeColor
-
getter/setter pair
- timer ↔ Timer?
-
函数防抖
getter/setter pair
- XButtonInterceptor ↔ Function
-
getter/setter pair
Functions
-
AlertModalPopupWidget(
BuildContext context, dynamic child, Widget? bottom, double? bottomHeight, Function? leftCallBack, String? leftText, String? title, bool? elevation, double? height) → SafeArea -
checkAllForm(
BuildContext context, List< CheckFormItem> arr) → bool -
collect(
dynamic bool) → Widget -
ColorToHex(
Color hexColor) → String -
countdown(
dynamic time, dynamic callback) → dynamic -
debounce(
Function func, [Duration delay = const Duration(milliseconds: 500)]) → dynamic -
debugInfo(
dynamic context, String text) → dynamic -
deepClone(
dynamic obj) → dynamic -
filterKey(
dynamic params, dynamic key) → dynamic -
filterList(
dynamic data, dynamic key) → dynamic -
font(
double value, {FontWeight? weight, dynamic color = "#666666", dynamic colorA, dynamic height, dynamic lineThrough = false, dynamic letterSpacing = false, dynamic fontFamily}) → TextStyle -
formatNum(
double num, int postion) → dynamic -
formCheck(
FormKeyEnum key, dynamic value, [dynamic required = false]) → dynamic -
formCheckToast(
BuildContext context, FormKeyEnum key, dynamic value, [dynamic info = '', dynamic required = false]) → bool -
getY(
BuildContext buildContext) → double -
icon(
IconData type, {double size = 18.0, String color = "#010101"}) → Icon -
IconAdd(
dynamic b, {dynamic size, dynamic radius}) → Widget -
IconRemove(
dynamic b, {dynamic size, dynamic radius}) → Widget -
intParse(
dynamic params) → dynamic -
isJson(
dynamic source) → bool -
isNotNull(
dynamic params) → bool -
loadImage(
String url) → Future< Image> -
mapData(
List list) → Iterable -
printLog(
Object message, StackTrace current) → void -
recursive(
dynamic data, dynamic keys) → dynamic -
rightIcon(
) → Widget -
selected(
dynamic bool, {dynamic color}) → Widget -
showConfirmDialog(
BuildContext context, String text, {Function? confirmCallback, dynamic submitTitle = '确定', dynamic cancelTitle = "取消", dynamic title = '温馨提示'}) → Future? -
showLoading(
dynamic context, [String text = "加载中,请等待..."]) → dynamic -
showToast(
dynamic context, String text) → dynamic -
splitList(
dynamic xList, [dynamic chunk = 2]) → List -
staticStorage(
{dynamic cookieName, dynamic api, dynamic params, dynamic callback, dynamic type = 0}) → Future -
throttle(
Function func, [Duration delay = const Duration(milliseconds: 2000)]) → dynamic -
throttle2(
Function func, [String? key]) → dynamic -
toInt(
dynamic value) → dynamic -
typeOf(
dynamic element) → String
Typedefs
-
ArrayClickCallback
= void Function(List<
int> selecteds, List strData) - DateClickCallback = void Function(dynamic selectDateStr, dynamic selectDate)
- StringClickCallback = void Function(int selectIndex, Object selectStr)