Flutter
Flutter integration
Host a Presenter in the widget tree with stable identity, current BuildContext, explicit effects, and application-owned business sources.
v0.1.0-dev.1Intermediate
Flutter integration
ark_mvp_flutter connects the framework-independent contracts to Flutter through MvpView, FlutterPresenter, and MvpModelProvider.
yaml
dependencies:
ark_mvp: ^0.1.0-dev.1
ark_mvp_flutter: ^0.1.0-dev.1
Declare the core package directly when application code imports ModelBinding, Presenter, or another core type.
Runtime flow
MvpViewresolves a direct binding or the nearest exact provider.- It subscribes to every Model change source before the first read.
- It reads the initial Model, creates Presenter, subscribes to output, and starts the session.
- Every Model signal, Presenter invalidation, or inherited presentation change rebuilds ViewState.
- Effects reach
onEffect(context, effect)once. - Removing or replacing the feature closes Presenter.
Open the lifecycle and ownership pages for the exact identity, error, and teardown rules.