axmvvm 0.3.4


Affixal MVVM - Clean and easy to use MVVM Architecture for Flutter

  • ViewModel base class.
  • ViewModel-First navigation.
  • Dependency Injecton with IoC Container.
  • Command Design Pattern.
  • Publish/Subscribe Design Pattern.
  • Localization Service.
  • Navigation Service.
  • Data Binding & Value Converter
  • Base class for views & widgets.

@ Inspired by Kevin Ford's fmvvm architecture -


  • Update documentation.

  • TODO:

    • Unit tests.
    • Create better example.


  • Format documents.
  • Remove unused imports.


  • Change some AxAPP method names.
  • Update documenttion.


  • Add layout information to state views and widgets


  • Add resumed() and paused() methods to base viewmodel.
  • Update documentation.


  • Change App Setup.


  • Now its possible to create lazySingletons.
  • Change how back button handle event works.
  • Added view events when app goes background and foregorund.
  • Update documentation.


  • Refactor closing viewModel.


  • Fix async navigation.
  • Fix navigate back methods.


  • Fix createViewModelForBottomNavigation and createViewModelForInitialView methods.


  • Refactor dependency registration method.


  • Update package description.


  • First Affixal MVVM release.


axmvvm_example #

Demonstrates how to use the axmvvm plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  axmvvm: ^0.3.4

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:axmvvm/axmvvm.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Health suggestions

Fix lib/bindings/axbindwidget.dart. (-0.50 points)

Analysis of lib/bindings/axbindwidget.dart reported 1 hint:

line 19 col 51: 'ancestorWidgetOfExactType' is deprecated and shouldn't be used. Use findAncestorWidgetOfExactType instead. This feature was deprecated after v1.12.1..

Format lib/axapp.dart.

Run flutter format to format lib/axapp.dart.

Format lib/axcontainer.dart.

Run flutter format to format lib/axcontainer.dart.

Fix additional 32 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/axcore.dart (Run flutter format to format lib/axcore.dart.)
  • lib/axdependency.dart (Run flutter format to format lib/axdependency.dart.)
  • lib/axmvvm.dart (Run flutter format to format lib/axmvvm.dart.)
  • lib/bindings/base_views/axstatefulview.dart (Run flutter format to format lib/bindings/base_views/axstatefulview.dart.)
  • lib/bindings/base_views/axstatelessview.dart (Run flutter format to format lib/bindings/base_views/axstatelessview.dart.)
  • lib/bindings/base_views/axstateview.dart (Run flutter format to format lib/bindings/base_views/axstateview.dart.)
  • lib/bindings/base_widgets/axstatefulwidget.dart (Run flutter format to format lib/bindings/base_widgets/axstatefulwidget.dart.)
  • lib/bindings/base_widgets/axstatelesswidget.dart (Run flutter format to format lib/bindings/base_widgets/axstatelesswidget.dart.)
  • lib/bindings/base_widgets/axstatewidget.dart (Run flutter format to format lib/bindings/base_widgets/axstatewidget.dart.)
  • lib/bindings/bind.dart (Run flutter format to format lib/bindings/bind.dart.)
  • lib/bindings/bindablebase.dart (Run flutter format to format lib/bindings/bindablebase.dart.)
  • lib/bindings/bindings.dart (Run flutter format to format lib/bindings/bindings.dart.)
  • lib/bindings/fielddata.dart (Run flutter format to format lib/bindings/fielddata.dart.)
  • lib/bindings/fielddata_manager.dart (Run flutter format to format lib/bindings/fielddata_manager.dart.)
  • lib/bindings/notificationlist.dart (Run flutter format to format lib/bindings/notificationlist.dart.)
  • lib/bindings/propertyinfo.dart (Run flutter format to format lib/bindings/propertyinfo.dart.)
  • lib/bindings/viewmodel.dart (Run flutter format to format lib/bindings/viewmodel.dart.)
  • lib/models/appconfiguration.dart (Run flutter format to format lib/models/appconfiguration.dart.)
  • lib/models/layout_information.dart (Run flutter format to format lib/models/layout_information.dart.)
  • lib/models/localization.dart (Run flutter format to format lib/models/localization.dart.)
  • lib/models/location.dart (Run flutter format to format lib/models/location.dart.)
  • lib/models/messenger.dart (Run flutter format to format lib/models/messenger.dart.)
  • lib/models/models.dart (Run flutter format to format lib/models/models.dart.)
  • lib/models/subscription.dart (Run flutter format to format lib/models/subscription.dart.)
  • lib/services/implementations/localization_service.dart (Run flutter format to format lib/services/implementations/localization_service.dart.)
  • lib/services/implementations/message_service.dart (Run flutter format to format lib/services/implementations/message_service.dart.)
  • lib/services/implementations/navigation_service.dart (Run flutter format to format lib/services/implementations/navigation_service.dart.)
  • lib/services/interfaces/ilocalization_service.dart (Run flutter format to format lib/services/interfaces/ilocalization_service.dart.)
  • lib/services/interfaces/imessage_service.dart (Run flutter format to format lib/services/interfaces/imessage_service.dart.)
  • lib/services/interfaces/inavigation_service.dart (Run flutter format to format lib/services/interfaces/inavigation_service.dart.)
  • lib/services/services.dart (Run flutter format to format lib/services/services.dart.)
  • lib/utilities.dart (Run flutter format to format lib/utilities.dart.)


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
flutter_cupertino_localizations ^1.0.1 1.0.1
flutter_localizations 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
intl 0.16.0 0.16.1
meta 1.1.8
path 1.6.4
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies