flutter_eval library

Provides a bridge between the Flutter framework and the dart_eval library, as well as helper classes to enable code-push and server-driven UI.

Classes

CompilerWidget
A CompilerWidget compiles and runs Dart code at runtime and displays the returned Widget.
EvalWidget
An EvalWidget dynamically switches between compiling Dart code to EVC bytecode and running it in debug mode, and loading and running EVC bytecode from an asset, file, or URL in release mode.
FlutterEvalPlugin
A EvalPlugin for dart_eval that provides Flutter classes.
HotSwap
A widget that can be hot-swapped at runtime via flutter_eval code push. Requires a HotSwapLoader ancestor.
HotSwapLoader
A widget that loads dart_eval hot-swap updates. Place this at the root of your app.
RuntimeWidget
A RuntimeWidget loads and runs EVC bytecode from a file, asset, or URL at runtime and displays the returned Widget.

Enums

HotSwapStrategy
Strategies for applying hot-swap updates

Constants

flutterEvalPlugin → const FlutterEvalPlugin
Global instance of FlutterEvalPlugin

Functions

setupFlutterForCompile(EvalPluginRegistry registry) → void
Setup flutter_eval classes for use in a dart_eval Compiler.
setupFlutterForRuntime(Runtime runtime) → void
Setup Flutter classes for use in a dart_eval Runtime. After calling this function, you must call runtime.setup().

Typedefs

EvalErrorBuilder = Widget Function(BuildContext context, Object error, StackTrace? stackTrace)
Builds an error widget for a given error.
EvalErrorCallback = Widget Function(Object error, StackTrace? stackTrace)
An error callback for HotSwapLoader