mhu_flutter_commons library

Mixins

HasFlcUi

Properties

appLifecycleStateSingleton → Fr<AppLifecycleState?>
final
defaultCmnColorThemeMsg → CmnColorThemeMsg
final
doubleEditFormat → NumberFormat
final

Functions

appLifecycleResumeEvents({required DspReg disposers}) Stream<void>
appLifecycleStateChanges({required DspReg disposers}) Stream<AppLifecycleState>
appLifecycleStateFr(DspReg disposers) → Fr<AppLifecycleState?>
collectionItemWidget<M extends GeneratedMessage>({required PbMapKey pbKey, required CachedFu<dynamic, dynamic, dynamic, Fw> cachedFu, required Fw<M> input, required ConcreteFieldKey fieldKey, required Pfe editor, required void remove(M message)}) Widget
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>
flcAsyncDisposeWidget({required Widget waiting, required Future<Widget> builder(DspReg disposers)}) Widget
flcBottomMenu(List<Widget> items) Widget
flcBusy(Future<Widget> builder()) Widget
flcBusyDsp(Future<Widget> builder(DspReg disposers)) Widget
flcCachedFileLoader<K>({required FileLoader<K> loader, required FileStore store, required FilePath pathProvider(K key)}) → FileLoader<K>
flcColumnCountButtons({required Fw<int> columnCount}) Iterable<Widget>
flcDisposeWidget({required Widget builder(DspReg disposers)}) Widget
flcDsp(Widget builder(DspReg disposers)) Widget
flcFrr(Widget builder()) Widget
flcGridColumnCountMenuButtons({required Fr<int> columnCount, required void setter(int)}) List<Widget>
flcGrowableGridView<K, V>({required Stream<IList<V>> take(int size), required Widget itemBuilder(BuildContext context, V value, AverageAspectRatio<K> aspectRatio), required Fr<int> columnCount, double padding = 4.0}) Widget
flcGrowableListView<V>({required Stream<IList<V>> take(int size), required ValueBuilder<V> itemBuilder, int pageSize = 16, String emptyMessage = 'No items found.'}) Widget
flcMounted(BuildContext context) bool
flcScaffold({required String title, required ScaffoldParts parts}) Widget
flcScaffoldLoading(String title) Scaffold
flcStreamWidget<T>({required Widget waiting, required Stream<Widget> stream}) Widget
flcText(String builder()) Widget
flcThumbnailLoader<KO>({required FileLoader<KO> originalLoader}) → FileLoader<ThumbnailKey<KO>>
flcThumbnailsCache<KO>({required FileLoader<KO> originalLoader, required FileStore thumbnailStore, required FilePathProvider<KO> thumbnailsPathProvider}) → FileLoader<ThumbnailKey<KO>>
flcTicker(Widget build(TickerProvider tickers)) Widget
flcUpdate(Widget builder(UpdateWidget update)) Widget
flcWaitingDsp(Widget waiting, Future<Widget> builder(DspReg disposers)) Widget
futureBuilder<T>({required Future<T> future, required Widget builder(BuildContext context, T value), Widget busy(BuildContext context) = snapshotDefaultBusy, SnapshotErrorHandler error = snapshotDefaultError}) Widget
futureBuilderNull<T>({required Future<T> future, required Widget builder(BuildContext context, T value), SnapshotErrorHandler error = snapshotDefaultError}) Widget
listOfValueListenables<T>(List<ValueListenable<T>> listenables) ValueListenable<List<T>>
pfeConfig(void build(PfeBuilder builder), {PfeConfig? initial}) PfeConfig
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
showTextInputDialog({required FlcUi ui, required Widget title, String? initialValue, String hint = "", Widget? submitLabel, Iterable<String> validator(Fr<String> value) = empty1}) Future<String?>
snapshotBuilder<T>({required Widget builder(BuildContext context, T value), Widget busy(BuildContext context) = snapshotDefaultBusy, SnapshotErrorHandler error = snapshotDefaultError}) AsyncWidgetBuilder<T>
snapshotDefaultBusy(BuildContext context) Widget
snapshotDefaultError(BuildContext context, Object error, [StackTrace? stackTrace]) Widget
stringEditorWidget({required String? initial, Validator<String> validator = empty1, TextInputType? keyboardType}) EditorWidget<String>
tabbedScaffold({required ScaffoldParts scaffold, required List<TabItem> items}) Widget
uiImage(Uint8List imageBytes) Future<Image>
uiImageAspectRatio(Uint8List imageBytes) Future<double>
validateStringOfDecimal(Fr<String> value) Iterable<String>
validateStringOfInt(Fr<String> value) Iterable<String>

Typedefs

EditCallback<T> = void Function(BuildContext context, T? value, void callback(T value))
EditorWidget<T> = ({ValueListenable<T?> listenable, Widget widget})
Messenger = GlobalKey<ScaffoldMessengerState>
Mfw = Fw<GeneratedMessage>
PbEntry<T> = ({PbMapKey key, T value})
PfeConfig = IMap<PfeKey, PFN>
PFN<I, O> = O Function(Pfe editor, I input)
PICollectionItem = ({ConcreteFieldKey fieldKey, Fw itemFw, PbMapKey key, Mfw mfw})
PICreateCollectionItem = ({Fw Function(Object item) addToCollection, ConcreteFieldKey fieldKey, PbMapKey key, Mfw mfw})
PISortCollectionItems = ({Iterable<PbEntry> items, Mfw mfw})
PKIOSortCollectionItems = PKIO<PISortCollectionItems, Iterable<PbEntry>>
PopperBuilder<W, T> = W Function(Popper<T> popper)
ScaffoldBuilder = Widget Function(ScaffoldParts parts)
SnapshotErrorHandler = Widget Function(BuildContext context, Object error, [StackTrace? stackTrace])
StringValidator = Iterable<String> Function(Fr<String> value)
UiImage = Image
UiImageProvider = Future<Image> Function()
UpdateWidget = void Function(Widget widget)
Validator<T> = Iterable<String> Function(T value)
ValueBuilder<T> = Widget Function(BuildContext context, T value)