component library Null safety

Classes

AlertConfirmAndCancel
弹出带 确定 和 取消 的按钮 点击 确定 或 取消 自动关闭 Pop up the button with OK and cancel click OK or cancel to automatically close
AlertCountSelect
带取消的 弹窗 单列选择
AlertMessage
弹出带确定的按钮 点击确定自动关闭 Pop up the button with "OK" and click "OK" to automatically close
AlertOnlyMessage
只弹出提示 没有按钮 不能关闭 Only pop-up prompt, no button, can not be closed
AlertSingleChoice
带取消的单选
BackIcon
BasicAppBar
BasicCheckbox
BasicCupertinoSwitch
BasicError
BasicFutureBuilder<T>
局部 异步加载数据
BasicList
BasicLoading
loading
BasicMaterialHeader
BasicScaffold
BasicStreamBuilder<T>
局部 异步加载数据
BasicSwitch
BasicText
BasicText
BasicTextField
BottomPadding
CleanCache
清除缓存右边的组件 Clear the component to the right of the cache
CurrentPickerOptions<T>
CustomDivider
Gif
A widget that renders a Gif controllable with AnimationController.
GifCache
Works as a cache system for already fetched GifInfo.
GifController
Controller that wraps AnimationController and protects the duration parameter. This falls into a design choice to keep the duration control to the Gif widget.
GifInfo
Stores all the ImageInfo and duration of a gif.
PushSwitchState
消息推送开关
ScanCodeShowPage
TextDefault
默认字体 The default font
TextLarge
Large font
TextSmall
小字体 Small font
TextVeryLarge
Very large font
TStyle
BasicTextStyle
UButton
USpacing

Extensions

ExtensionNotificationListener

Functions

alertOnlyMessage(String? text, {bool autoOff = true}) ExtendedOverlayEntry?
pickerArea({String? defaultProvince, String? defaultCity, String? defaultDistrict, BottomSheetOptions? options}) Future<String?>
省市区选择器
pickerCustom<T>(Widget content, {String title = '', PickerTapConfirmCallback<T>? confirmTap, PickerTapCancelCallback<T?>? cancelTap, PickerSubjectTapCallback<T>? customConfirmTap, PickerSubjectTapCallback<T?>? customCancelTap, Color? backgroundColor, BottomSheetOptions? bottomSheetOptions, double height = 250}) Future<T?>
pickerDateTime({DateTime? startDate, DateTime? defaultDate, DateTime? endDate, int? dateTimeType, ValueCallback<String>? confirmTap, BottomSheetOptions? options}) Future<String?>
日期选择器
pickerMultipleChoice<T>(String title, {required int itemCount, required IndexedWidgetBuilder itemBuilder, BottomSheetOptions? options}) Future<int?>
多条数据列表选择器
pickerSingleChoice(List<String> list, {BottomSheetOptions? options}) Future<int?>
底部有取消的单选 返回数组index
showAlertConfirmCancel({String? text, String? confirmText, String? cancelText, String? titleText, GestureTapCallback? confirmTap, GestureTapCallback? cancelTap, bool autoClose = true, Widget? title, Widget? contentText, Widget? content, Widget? cancel, Widget? confirm, DialogOptions? dialogOptions}) Future?
弹出带 确定 和 取消 的按钮 点击 确定 或 取消 自动关闭 Pop up the button with OK and cancel click OK or cancel to automatically close
showAlertCountSelect({required List<String> list, int? defaultIndex, BottomSheetOptions? bottomSheetOptions}) Future<int?>?
带取消的 弹窗 单列选择
showAlertMessage({String? text, String? confirmText, String? titleText, GestureTapCallback? confirmTap, Widget? contentText, Widget? content, Widget? title, Widget? confirm, DialogOptions? dialogOptions}) Future?
弹出消息 提示 仅 带确认按钮 A message is displayed with a confirm button only
showBasicBottomSheet<T>(Widget widget, {bool isScrollControlled = false, BottomSheetOptions? options}) Future<T?>
showBottomPopup 移除背景色 关闭滑动手势
showDoubleChooseAlert({required String title, required String left, required String right, GestureTapCallback? rightTap, GestureTapCallback? leftTap, Widget? center, ModalWindowsOptions? options, DialogOptions? dialogOptions}) Future<bool?>
showUserPrivacyAlert({required String title, required GestureTapCallback onUserAgreementTap, required GestureTapCallback onPrivacyPolicyTap, required GestureTapCallback onConsentTap, ModalWindowsOptions? options}) → void

Enums

Autostart
How to auto start the gif.
FontType