axmvvm 0.3.4

  • Readme
  • Changelog
  • Example
  • Installing
  • new52

AxMVVM #

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 - https://github.com/Bowman74/fmvvm

[0.3.4]

  • Update documentation.

  • TODO:

    • Unit tests.
    • Create better example.

[0.3.3]

  • Format documents.
  • Remove unused imports.

[0.3.2]

  • Change some AxAPP method names.
  • Update documenttion.

[0.3.1]

  • Add layout information to state views and widgets

[0.3.0]

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

[0.2.3]

  • Change App Setup.

[0.2.2]

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

[0.2.1]

  • Refactor closing viewModel.

[0.2.0]

  • Fix async navigation.
  • Fix navigate back methods.

[0.1.3]

  • Fix createViewModelForBottomNavigation and createViewModelForInitialView methods.

[0.1.2]

  • Refactor dependency registration method.

[0.1.1]

  • Update package description.

[0.1.0]

  • First Affixal MVVM release.

example/README.md

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:


dependencies:
  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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
4
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
52
Learn more about scoring.

We analyzed this package on Dec 3, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/axapp.dart.

Run flutter format to format lib/axapp.dart.

Format lib/axcontainer.dart.

Run flutter format to format lib/axcontainer.dart.

Format lib/axcore.dart.

Run flutter format to format lib/axcore.dart.

Fix additional 32 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/axdependency.dart (Run flutter format to format lib/axdependency.dart.)
  • lib/axmvvm.dart (Run flutter format to format lib/axmvvm.dart.)
  • lib/bindings/axbindwidget.dart (Run flutter format to format lib/bindings/axbindwidget.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.)

Dependencies

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.15.8 0.16.0
meta 1.1.7 1.1.8
path 1.6.4
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test