lib_common_fx library
Classes
- BaseEntity
-
BottomDialog<
T> - BottomItemDialog
- CenterPageHint
- CenterText
- CheckBoxDialog
- CheckBoxDialogState
- DatePicker
- DateSelector
- DateTimeUtil
- DecimalTextInputFormatter
- DialogEntity
- EditCommonUi
- EventBus
- FXColor
- FxDialog
- FxFormat
- FxFutureBuilder
- Author: wangys Date: 2022-10-17 09:30:41 Description: FutureBuilder封装
- FxFutureBuilderState
- FXNumberInputFormatter
-
当输入数字时,用于限制输入的位数;
TextField(
inputFormatters:
//限制整数长度100,小数长度2 FXNumberInputFormatter(integerLength: 100, decimalLength: 2)
, ); -
FxRadioButton<
T> - FXText
- 修正不同手机上leading和不居中的问题
- FXTextArea
-
FXTextArea( title: "内容标题", // 内容label defaultValue: "默认值1234", // 默认值 maxLength: 50, // 最长输入 showCounter: false, // 是否展示最大输入 onChanged: (value) { // 输入onchange print(value); }, ),
- FxUtils
- ImagePickerWidget
- ItemDialog
- ItemDialogState
- LessThan1Formatter
-
ListResponse<
T> - Log
- Author: wangys Date: 2022-10-12 08:52:19 Description: 使用时尽量注明tag
- LogInterceptor
- MethodChannelBase
-
NativeState<
T extends StatefulWidget> - Net
- Author: wangys Date: 2022-10-12 09:05:44 Description:
- NetConfigInterface
- NetError
-
NetResponse<
T> - NoDataWidget
- NoDataWidgetState
- NoScrollGrowBehavior
- PageLoadingListView
- PageLoadingListViewState
-
Pair<
T1, T2> - PhotoViewDialog
- PopupSelectDialog
- RawData
- RegExpUtil
- Remove0PrefixFormatter
- Toolbar
- WaitingDialogHelper
Enums
Extensions
Constants
-
ID_CARD_PROVINCE_DICT
→ const List<
String> - id card province dict.
Functions
-
formatgToT(
int? g, {String? def, bool fixZero = false, int decimalLength = 2}) → String? - 克转吨 def:输入为空时的默认值 fixZero:小数是否去掉末尾0, decimalLength:小数位数 formatgToT(0) = 0.00 formatgToT(0,fixZero:true) = 0
-
formatInt(
int? number, {String? def, int scale = 1, bool fixZero = false, int decimalLength = 2}) → String? -
isEmpty(
String? str) → bool - Author: wangys Date: 2022-10-17 11:41:18 Description: str == null || str == ''
-
isNotEmpty(
String? str) → bool - str != null && str.isNotEmpty
-
isNotNull(
dynamic obj) → bool - obj != null
-
isNull(
dynamic obj) → bool - obj == null
-
parseTTog(
String? input, {int? def}) → int?
Typedefs
-
BottomItemCallBack<
T> = Widget Function(int index) - EventCallback = void Function(dynamic arg)