app_runner library
Classes
-
AppBuilder<
T extends Object?> - AppBuilder main widget to use in WidgetConfiguration.
- RunnerConfiguration
- Runner Configuration
- WidgetConfiguration
- Widget configuration, takes in itself:
- ZoneConfiguration
- Zone configuration, takes in itself:
Extensions
- ReloadableX on BuildContext
- Extension for ReloadableWidget on BuildContext.
Functions
-
appRunner(
RunnerConfiguration config) → void - Starts the zone and attaches the app to the screen.
-
reloadWidget(
BuildContext context) → void - Reloads widgets when reloadWidget is called. Reloads occurs by changing UniqueKey.
Typedefs
- ErrorRenderObjectBuilder = RenderObject Function(BuildContext context, FlutterErrorDetails errorDetails)
- Custom Builder for error handling in debug and profile mode
- InitializeBinding = WidgetsBinding Function()
- Callback to use your WidgetsBinding instance
-
InitializeFunctions<
T> = FutureOr< T> Function(WidgetsBinding binding) -
A callback to initialize your code.
Responsible for initializing custom methods, such as
Firebase
,Sentry
, etc. - OnError = void Function(Object error, StackTrace stackTrace)
-
The
onError
function is used both to handle asynchronous errors by overriding ZoneSpecification.handleUncaughtError inzoneSpecification
, if any, and to handle errors thrown synchronously by the call tobody
. - RenderObjectBuilder = RenderObject Function(BuildContext context)
- Custom Builder for error handling in release mode