widgets/widgets
library
Functions
-
AsyncBuilder<T>({required Future<T> future, required Widget builder(BuildContext, T), Widget waiting(BuildContext)?, Widget failed(BuildContext)?, T? initValue})
→ Widget
-
-
EditArea({Key? key, TextEditingController? controller, String? initialValue, String? label, String? hint, int? minLength, int maxLength = 256, bool allowEmpty = true, OnValue<String>? onSubmitted, Widget? prefixIcon, String? helperText, String? errorText, Widget? suffixIcon, Color? cursorColor, TextValidator? validator, List<TextInputFormatter>? inputFormatters, FocusNode? focusNode, bool autofocus = false, int? maxLines = 6, int? minLines = 3, bool readonly = false, InputDecoration? decoration, void onChanged(String)?, void onTapOutside(PointerDownEvent)?})
→ TextFormField
-
-
EditDouble({Key? key, TextEditingController? controller, OptionalValueListener<double>? valueListener, double? initialValue, double? minValue, double? maxValue, bool signed = true, bool allowEmpty = true, void onSubmitted(String)?, void onChanged(String)?, String? label, String? hint, Widget? prefixIcon, String? helperText, String? errorText, int? maxLength, bool clear = false, Widget? suffixIcon, FocusNode? focusNode, Color? cursorColor, TextInputType? keyboardType, TextInputAction? textInputAction = TextInputAction.next, InputDecoration? decoration, InputBorder? border})
→ Widget
-
-
EditInt({Key? key, OptionalValueListener<int>? valueListener, TextEditingController? controller, int? initialValue, int? minValue, int? maxValue, bool signed = true, bool allowEmpty = true, void onSubmitted(String)?, void onChanged(String)?, String? label, String? hint, Widget? prefixIcon, String? helperText, String? errorText, int? maxLength, bool clear = false, Widget? suffixIcon, FocusNode? focusNode, Color? cursorColor, TextInputType? keyboardType, TextInputAction? textInputAction = TextInputAction.next, InputDecoration? decoration, InputBorder? border})
→ Widget
-
-
EditPassword({Key? key, required ValueListener<bool> eyeListener, ValueListener<String>? valueListener, TextEditingController? controller, String? initialValue, int minLength = 1, int maxLength = 128, String? label = "密码", String? errorText, String? hint, OnValue<String>? onChanged, OnValue<String>? onSubmitted, List<TextInputFormatter>? inputFormatters, FocusNode? focusNode, Color? cursorColor, Widget? prefixIcon = const Icon(Icons.lock), TextInputAction? textInputAction = TextInputAction.done})
→ Widget
-
-
EditText({Key? key, TextEditingController? controller, ValueListener<String>? valueListener, String? initialValue, String? label, String? hint, int? minLength, int maxLength = 256, bool allowEmpty = true, OnValue<String>? onSubmitted, Widget? prefixIcon, String? helperText, String? errorText, bool clear = false, Widget? suffixIcon, Color? cursorColor, TextValidator? validator, List<TextInputFormatter>? inputFormatters, TextInputType? keyboardType = TextInputType.text, TextInputAction? textInputAction = TextInputAction.next, FocusNode? focusNode, TextAlign textAlign = TextAlign.start, bool autofocus = false, int? maxLines, int? minLines, bool readonly = false, InputDecoration? decoration, void onChanged(String)?, void onTapOutside(PointerDownEvent)?})
→ TextFormField
-
-
iconPopActions(IconData icon, List<XAction> callback(BuildContext c))
→ Widget
-
-
moreActions(List<XAction> callback(BuildContext c))
→ Widget
-
-
RadioGroupHor<T>(List<LabelValue<T>> items, OptionalValueListener<T> listener, {MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceAround})
→ RadioGroup<T>
-
-
RadioGroupVer<T>(List<LabelValue<T>> items, OptionalValueListener<T> listener, {MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start})
→ RadioGroup<T>
-