mhu_flutter_commons library

Constants

busyWidget → const BusyWidget
nullWidget → const NullWidget

Properties

doubleEditFormat → NumberFormat
final

Functions

doubleEditorWidget({required double? initial, Validator<double> validator = empty1}) EditorWidget<double>
editDialogCallback<T>({required Widget title, required EditorWidget<T> editorWidget(T? initial)}) EditCallback<T>
editDoubleCallback({required Widget title, Validator<double> validator = empty1}) EditCallback<double>
editOptionsCallback<T>({required Widget title, required RxVal<List<T>> options, required Widget labelBuilder(T option)}) EditCallback<T>
editStringCallback({required Widget title, Validator<String> validator = empty1}) EditCallback<String>
listOfValueListenables<T>(List<ValueListenable<T>> listenables) ValueListenable<List<T>>
showConfirmDialog({required BuildContext context, required Widget title, required void callback()}) → void
showEditStringDialog({required BuildContext context, required Widget title, Validator<String> validator = empty1, String initial = '', required void callback(String value)}) → void
stringEditorWidget({required String? initial, Validator<String> validator = empty1, TextInputType? keyboardType}) EditorWidget<String>

Typedefs

EditCallback<T> = void Function(BuildContext context, T? value, void callback(T value))
EditorWidget<T> = ({ValueListenable<T?> listenable, Widget widget})
Validator<T> = Iterable<String> Function(T value)