widgets/widgets_index library

Classes

AddListButton
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
CommonBottomSheet<T>
DatePickerBottomSheet
DateRangeBottomSheet
FloatingAddButton
GridButton
GridTapWidget
ImageButton
Indicator
InkWellWidget
InputSelect
KeepAliveWrapper
KeyboardDismissState<T extends StatefulWidget>
KeyboardDismissStatelessWidget
LightText
ListItem<T>
ListItemLatLonInput
ListItemMileInput
ListItemMileInputExt
路陪特殊需求,无需校验桩号
ListItemTextInput
ListItemTimerRange
LoadingMoreSelectList<T>
LoadingMoreSelectList1<T>
LoadingMoreWithSearch<T>
MultiLineText
NumericalRangeFormatter
OperatorCard<T>
OutBorderButton
OutLineTextLabel
PageInLoadding
PageInput
PositionedImageFlag
PrimaryButton
RedTextLabel
SeparationLine
TCheckBox
TEmptyWidget
TextFlag<T>
TextIconButton
TextLabel
TLBlacklistingTextInputFormatter
忽略表情
TLCalendar
TLCardstatistics<T>
TLCardStatisticsModel<T>
TLContentContainer
TLIgnoreOtherFormatter
忽略特殊字符
TLNumberTextField
TLNumberTextInputFormatter
TLoadingMoreList<T>
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
WorkItemCard
WorkSpaceCard

Constants

cityOptions → const List<Map<String, Object>>

Properties

calendarKey GlobalKey<_TLCalendarState>
no setter
wrapChoiceBoxKey GlobalKey<_TLWrapChoiceBoxState>
no setter

Functions

buildLoadingMoreListIndicator(BuildContext context, IndicatorStatus status, LoadingMoreBase listSource, [bool isSliver = false]) Widget
debounce(Function fn, [int t = 500]) → dynamic
getIndicator(BuildContext context) Widget
hideKeyboard(BuildContext context) → void
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<String, dynamic>> items, String parentIdKey, int parentId, {int? selected, String? itemName, String? compareId, dynamic onSelected(List<Map<String, dynamic>> items, List<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

Typedefs

IsDisable<T> = bool Function(T value)
IsSelected<T> = bool Function(T value, int? index)
TitleTransformer<T> = String Function(T value, int? index)
ValueChange<T> = void Function(T value, int? index)