MediaHost class abstract

What the media flow reads from the app that hosts it. The app sets MediaHost.current before it shows any of the flow.

Constructors

MediaHost()

Properties

colors → MediaColors
Colours, read on every build so a theme change shows at once.
no setter
hashCode → int
The hash code for this object.
no setterinherited
icons → MediaIcons
Icons.
no setter
insets → MediaInsets
Safe-area and keyboard insets.
no setter
lifecycle → ValueListenable<AppLifecycleState>
The app's lifecycle state.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strings → MediaStrings
Strings in the app's language.
no setter
text → MediaText
Type.
no setter

Methods

caption(TextEditingController controller) → Object?
The caption a controller from captionController holds, as the app sends it; absent when the app sends none.
captionController() → TextEditingController
A controller for the caption of one composed item.
captionField({required GlobalKey<State<StatefulWidget>> bubbleKey, required TextEditingController controller, required FocusNode focusNode, required VoidCallback onSubmit, required String placeholder}) → Widget
The caption field over a controller from captionController.
confirmButton({required VoidCallback onPressed}) → Widget
The app's primary button, confirming an edit that has no caption field to send it.
isWideScreen(BuildContext context) → bool
Whether the window is wide enough for the app's wide layout.
keyboardInsets({required Widget builder(BuildContext context, double bottom)}) → Widget
Builds with the bottom inset that clears the keyboard and the safe area, and rebuilds when it changes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
push<T>(Screen<T> screen) → Future<T?>
Shows screen on the app's router and completes with its result.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

current ↔ MediaHost
The host in effect.
getter/setter pair