Lowder class abstract
The main class for a Lowder project. It's the starting and central point of the app with singleton references to the WidgetFactory, ActionFactory, PropertyFactory, globalVariables and navigatorKey.
- Inheritance
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- log ↔ Logger
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
solutions
→ List<
SolutionSpec> -
Implement this method to register your solution.
A solution has a name, a schema file (
no setter
- title → String
-
The name for the App.
final
Methods
-
buildApp(
Widget rootWidget) → Widget -
createActionFactory(
) → ActionFactory -
createBloc(
) → GlobalBloc - A GlobalBloc is present to handle global events, like the activity indicator or messages (info, success, warning, error).
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createPropertyFactory(
) → PropertyFactory -
createState(
) → AppState -
Creates the mutable state for this widget at a given location in the tree.
override
-
createWidgetFactory(
) → WidgetFactory -
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
-
fetchSolutionMap(
String path) → Future< Map?> - This method will fetch the schema file from Assets. Override it to fetch the schema file from an alternative location, like a remote location to allow over-the-air updates.
-
getInitialScreen(
BuildContext context) → Widget - This will be the first Widget the user will see, tipically a splash screen. Use it to do some background work like refreshing an access token or remotely fetch the schema file. When all animations and backgroung work is done, just pop it and Lowder will load the solution and render the landing screen.
-
getTheme(
) → dynamic -
globalListener(
BuildContext context, BaseState state) → void -
globalListenWhen(
BaseState prevState, BaseState newState) → bool -
init(
) → Future< void> - Upon 'InitialScreen' completion, a series of async methods will run in order: init, loadSolution and postInit After those methods complete, the Solution's landing screen will be built.
-
loadSolution(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onNewLog(
LogRecord logRecord) → Future< void> -
Method called upon
Logger
's 'onRecord'. When in editor mode, logs will be sent to the Editor. -
postInit(
) → Future< void> -
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}) → 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
Static Properties
- actions → ActionFactory
-
The instance of the ActionFactory.
no setter
- editorMode → bool
-
A bool indicating if interaction with the Editor is active.
no setter
- editorServer → String
-
The url of the Editor http server.
no setter
- environment → String
-
The active environment name, matching an existing environment name in the model.
no setter
- globalVariables → Map
-
final
-
final
- properties → PropertyFactory
-
The instance of the PropertyFactory.
no setter
- widgets → WidgetFactory
-
The instance of the WidgetFactory.
no setter
Static Methods
-
getSchema(
) → List< Map> -
of(
BuildContext context) → Lowder? - Method that allows access ta a Lowder instance as long as BuildContext contains a Lowder instance.