KataglyphisAppShell<T> class
The application shell both Kataglyphis Flutter apps are built on. The apps supply only how they load settings and which app-owned types those become.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- KataglyphisAppShell
Constructors
-
KataglyphisAppShell({Key? key, required AppShellDataLoader<
T> loadBootstrapData, required AppShellBindingBuilder<T> buildBinding, List<LocalizationsDelegate> appLocalizationsDelegates = const <LocalizationsDelegate<dynamic>>[], String fontFamily = kAppShellFontFamily, ThemeMode initialThemeMode = ThemeMode.dark, ColorSeed initialColorSeed = ColorSeed.baseColor, List<Locale> fallbackLocales = const <Locale>[Locale('en')], AppShellLoadingBuilder? loadingBuilder, AppShellErrorBuilder? errorBuilder}) -
const
Properties
-
appLocalizationsDelegates
→ List<
LocalizationsDelegate> -
The app's own delegates; the shell appends AnthologyLocalizations.delegate and the
Global*Localizationsones.final -
buildBinding
→ AppShellBindingBuilder<
T> -
Turns the loaded data into an AppAttributes and a RoutesCreator.
final
- errorBuilder → AppShellErrorBuilder?
-
Overrides the default failure screen.
final
-
fallbackLocales
→ List<
Locale> -
Used when
AppSettings.supportedLocalesis null or empty; must not be empty itself.final - fontFamily → String
-
Font family for both generated themes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialColorSeed → ColorSeed
-
Seed colour before the user touches the colour menu.
final
- initialThemeMode → ThemeMode
-
Theme mode before the user touches the brightness switch.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
loadBootstrapData
→ AppShellDataLoader<
T> -
Runs once, from
initState.final - loadingBuilder → AppShellLoadingBuilder?
-
Overrides the default progress indicator.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< KataglyphisAppShell< T> > -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited