tengits_common library
Classes
- AddListButton
- AnimationParam
- advanced usage:
- BottomButtonMenu
-
BottomSheetSingleResult<
T> - ButtonGroup
- ButtonOperatorCard
-
ButtonSelectDrawer<
T> - CalendarDateRangePicker
- Displays a scrollable calendar grid that allows a user to select a range of dates.
- CardContainer
-
CardHeader<
T> - CardInput
- CardInputExc
- CenterDockerButton
- ChartCalculateUtils
- ChartMaxAndInterval
-
CommonBottomSheet<
T> - 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
- DateFormatterUtils
- DatePickerBottomSheet
- DateRangeBottomSheet
- DateRangeStr
- DateUtil
- Date Util.
- EmptyWidget
- EncryptUtil
- Encrypt Util.
- EnInfo
- EnNormalInfo
- ExtendedListDelegate
-
A delegate that provides extensions within the
ExtendedGridView
,ExtendedList
,WaterfallFlow. - FixedOverscrollBouncingScrollPhysics
- This is the behavior typically seen on iOS. drag loadmore item, overscroll will increase viewport pixels and maxScrollExtent at that moment and jump into new pixels which is much bigger we should correct pixels in BouncingScrollPhysics.adjustPositionForNewDimensions
- FloatingAddButton
- FlutterSmartDialog
- FlutterSmartNotifyStyle
- FontSizeResolvers
- FormatterUtils
- GlowNotificationWidget
- GridButton
- GridTapWidget
- ImageButton
- ImageUtils
- Indicator
- IndicatorWidget
- InkWellWidget
- InputSelect
- JsonUtil
- Json Util.
- KeepAliveWrapper
-
KeyboardDismissState<
T extends StatefulWidget> - KeyboardDismissStatelessWidget
- LightText
-
ListConfig<
T> -
ListItem<
T> - ListItemLatLonInput
- ListItemMileInput
- ListItemMileInputExt
- 路陪特殊需求,无需校验桩号
- ListItemTextInput
- ListItemTimerRange
-
LoadingMoreBase<
T> - LoadingMoreCustomScrollView
-
LoadingMoreList<
T> -
LoadingMoreListConfig<
T> -
LoadingMoreSelectList<
T> -
LoadingMoreSelectList1<
T> -
LoadingMoreSliverList<
T> -
LoadingMoreWithSearch<
T> - Log
- 输出Log工具类
- LogUtil
- Log Util.
- MoneyUtil
- Money Util.
- MultiLineText
- NetWorkSateUtil
- NumericalRangeFormatter
- NumUtil
- Num Util.
- ObjectUtil
- Object Util.
-
OperatorCard<
T> - OutBorderButton
- OutLineTextLabel
- PageInLoadding
- PageInput
- PositionedImageFlag
- PrimaryButton
- RebuildFactors
- REdgeInsets
- REdgeInsetsDirectional
- RedTextLabel
- RefreshBase
- RegexUtil
- Regex Util.
- RenderSliverWaterfallFlow
- A sliver that places multiple box children with masonry layouts.
- RPadding
- RSizedBox
- ScreenUtil
- ScreenUtilInit
- SeparationLine
-
SliverListConfig<
T> - SliverWaterfallFlow
- A sliver that places multiple box children in a two dimensional arrangement and masonry layout.
- SliverWaterfallFlowDelegate
- create by zmtzawqlp on 2019/11/9
- SliverWaterfallFlowDelegateWithFixedCrossAxisCount
- Creates masonry layouts with a fixed number of tiles in the cross axis.
- SliverWaterfallFlowDelegateWithMaxCrossAxisExtent
- Creates masonry layouts with tiles that each have a maximum cross-axis extent.
- SliverWaterfallFlowParentData
- Parent data structure used by RenderSliverWaterfallFlow.
- SmartConfigAttach
- showAttach() global config
- SmartConfigCustom
- show() global config
- SmartConfigLoading
- showLoading() global config
- SmartConfigNotify
- show() global config
- SmartConfigToast
- showToast() global config
- SmartDialog
- SmartDialogController
- SmartDialog Controller
- StringUtils
- TCheckBox
- TEmptyWidget
-
TextFlag<
T> - TextIconButton
- TextLabel
- TextUtil
- Text Util.
- TimelineInfo
- Timeline information configuration. Timeline信息配置.
- TimelineUtil
- TimelineUtil
- TimerUtil
- TimerUtil.
- TLBlacklistingTextInputFormatter
- 忽略表情
- TLCalendar
-
TLCardstatistics<
T> -
TLCardStatisticsModel<
T> - TLContentContainer
- TLIgnoreOtherFormatter
- 忽略特殊字符
- TLNumberTextField
- TLNumberTextInputFormatter
-
TLoadingMoreList<
T> - TLoadingUtils
- TLOnlyInputNumberAndLowWorkFormatter
- 只能输入数字和小写字母
- TLOnlyInputNumberAndWorkFormatter
- 只能输入数字和字母
- TLOnlyInputWorkFormatter
- 只能输入字母
- TLPickers
- TLTabBar
- TLTabBarView
- TLTextField
- TLTextFlagDrawer
-
TLWrapChoiceBox<
T> - TNoDataWidget
- TriangleShape
- TSearchBar
- TUnderlineTabIndicator
- Used with TabBar.indicator to draw a horizontal line below the selected tab.
- UpDownChartFlag
- Utils
- ValidUtils
- WaterfallFlow
- create by zmtzawqlp on 2019/11/9
- WorkItemCard
- WorkSpaceCard
- ZhInfo
- ZhNormalInfo
Enums
- DayFormat
- (xx)Configurable output. (xx)为可配置输出.
- DeviceType
- IndicatorStatus
- LastChildLayoutType
- MoneyFormat
- MoneyUnit
- NotifyType
- Prompt dialog to distinguish different types of showNotify
- SmartAllDialogType
- dialog type
- SmartAnimationType
- Different animation types can be set for dialog (appearing and disappearing)
- SmartAttachAlignmentType
- The alignment effect when the attach dialog selects different alignment properties
- SmartAwaitOverType
- The type of dialog await ending
- SmartBackType
- SmartInitType
- The initialization type can be dynamically set, which is suitable for some special scenarios; for example: for a desktop application, initializing the global only needs to initialize the Attach Dialog, and initializing a block area does not need to initialize the Attach Dialog
- SmartMaskTriggerType
- The type of timing that is triggered when the mask is clicked
- SmartNonAnimationType
- For different scenes, the pop-up animation can be dynamically closed.
- SmartStatus
- SmartToastType
- TLWrapChoiceBoxType
Mixins
- ExtendedRenderObjectMixin
-
mixin of extended list render
if sliver is all out of viewport then return
-1,-1
or nothing -
ProcessStateMixin<
T extends StatefulWidget> - SU
Extensions
Constants
-
cityOptions
→ const List<
Map< String, Object> >
Properties
-
calendarKey
→ GlobalKey<
_TLCalendarState> -
no setter
-
ID_CARD_PROVINCE_DICT
↔ List<
String> -
id card province dict.
getter/setter pair
-
MONTH_DAY
↔ Map<
int, int> -
month->days.
getter/setter pair
-
wrapChoiceBoxKey
→ GlobalKey<
_TLWrapChoiceBoxState> -
no setter
Functions
-
buildLoadingMoreListIndicator(
BuildContext context, IndicatorStatus status, LoadingMoreBase listSource, [bool isSliver = false]) → Widget -
debounce(
Function fn, [int t = 500]) → dynamic -
getAge(
String idCard) → int - 返回输入身份证的用户周岁,请验证身份证号合法之后再使用该函数, 该函数不会额外去验证输入是否正确 计算有误返回-1
-
getAgeFromBirthday(
String dob) → int - 输入格式19990131
-
getAgeFromBirthdayWithSep(
String dob) → int - 输入格式1999-03-05
-
getBirthday(
String idCard) → String - 返回出生年月日,请验证身份证号合法之后再使用该函数, 该函数不会额外去验证输入是否正确
-
getGender(
String idCard) → String - 返回'男'或者'女',请验证身份证号合法之后再使用该函数, 该函数不会额外去验证输入是否正确
-
getIndicator(
BuildContext context) → Widget -
hideKeyboard(
BuildContext context) → void -
isIdCard(
String idCard) → bool -
setLocaleInfo(
String locale, TimelineInfo timelineInfo) → void - add custom configuration.
-
showAlertDialog(
BuildContext context, String title, void onConfirm()?, {String? message, bool showIcon = false}) → dynamic -
showAlertDialogCustom(
{String? title, String? message, String cancel = "取消", GestureTapCallback? onCancel, String confirm = "确定", GestureTapCallback? onConfirm, BuildContext? context}) → dynamic -
showAlertDialogCustom1(
{String? title, String? message, Widget? messageWidget, String cancel = "", String confirm = "确定", GestureTapCallback? onConfirm, BuildContext? context}) → dynamic -
showAlertDialogCustom3(
{String? title, String? message, String cancel = "取消", GestureTapCallback? onCancel, String confirm = "确定", GestureTapCallback? onConfirm, BuildContext? context}) → dynamic -
showCustomAlterDialog(
BuildContext context, {required String title, required String message, Widget? messageWidget, required String cancel, required String confirm, Color cancelColor = const Color(0xff323233), Color confirmColor = const Color(0xff1989FA), GestureTapCallback? onCancel, GestureTapCallback? onConfirm, bool barrierDismissible = false, bool showIcon = false, Widget? iconWidget}) → dynamic -
showDateBottomSheetDialog(
BuildContext context, String title, {DateTime? startTime, DateTime? endTime, RangeSelectionMode? selectMode}) → Future -
showDatePickerBottomSheetDialog(
BuildContext context, String title, {DateTime? startTime, DateTime? minTime, DateTime? maxTime}) → Future -
showGridListBottomSheetDialog(
BuildContext context, String title, List< Widget> buttons, {Widget? header, String descText = ""}) → Future -
showMultiBottomSheetDialog<
T> (BuildContext context, String title, List< T> items, {IsSelected<T> ? isSelected, required TitleTransformer<T> titleTransformer}) → Future<List< T> ?> -
showMultiColumnBottomSheetDialog(
BuildContext context, String title, List< Map< items, String parentIdKey, int parentId, {int? selected, String? itemName, String? compareId, dynamic onSelected(List<String, dynamic> >Map< items, List<String, dynamic> >int> ids)?}) → Future -
showSingleBottomSheetDialog<
T> (BuildContext context, String title, List< T> items, {IsSelected<T> ? isSelected, TitleTransformer<T> ? titleTransformer, IsDisable<T> ? isDisable}) → Future<BottomSheetSingleResult< T> ?> -
throttle(
Future func()) → dynamic -
wrap15To18(
String idCard) → String
Typedefs
- AmountCondition = num Function(dynamic item)
-
CollectGarbage
= void Function(List<
int> garbages) - Return indexes of children which are disposed to collect
- FlutterSmartLoadingBuilder = Widget Function(String msg)
- FlutterSmartStyleBuilder = Widget Function(Widget child)
- FlutterSmartToastBuilder = Widget Function(String msg)
- FontSizeResolver = double Function(num fontSize, ScreenUtil instance)
-
IsDisable<
T> = bool Function(T value) -
IsSelected<
T> = bool Function(T value, int? index) - LastChildLayoutTypeBuilder = LastChildLayoutType Function(int index)
- The builder to get layout type of last child Notice: it should only for last child
- LoadingMoreIndicatorBuilder = Widget? Function(BuildContext context, IndicatorStatus status)
-
LoadingMoreItemBuilder<
T> = Widget Function(BuildContext context, T item, int index) - OnTimerTickCallback = void Function(int millisUntilFinished)
- timer callback.(millisUntilFinished 毫秒).
- PaintExtentOf = double Function(RenderBox? child)
- Return paint extent of child
- RebuildFactor = bool Function(MediaQueryData old, MediaQueryData data)
- ScreenUtilInitBuilder = Widget Function(BuildContext context, Widget? child)
-
TitleTransformer<
T> = String Function(T value, int? index) -
ValueChange<
T> = void Function(T value, int? index) - ViewportBuilder = void Function(int firstIndex, int lastIndex)
-
The builder to get indexes in viewport
if sliver is all out of viewport then return
-1,-1