flutter_arhitecture_helper 0.4.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

flutter_arhitecture_helper #

Architecture helper package

Designed for a quick start when developing applications. Allows you to simplify the creation of Clear Architecture and facilitate the basic tasks inherent in most applications.

This package helps not only to organize your code qualitatively, but also includes methods that facilitate a lot of tasks.

Usage #

To use this package, add flutter_arhitecture_helper as a dependency in your pubspec.yaml file.

  flutter_arhitecture_helper: ^0.4.3

Example #

Main function #

var theme = new ThemeData(
  primarySwatch: Colors.blue,
var appCongig = new BaseAppConfig(
    isMaterial: true,
    title: 'DipDev Studio',
    theme: theme,
    color: theme.primaryColor,
    home: new SplashScreen());
var app = new BaseApp(appCongig);

void main() => runApp(app);
view.navigateTo(model.context, new MainScreen(), true);

Refresh UI from View Model #


Events in View Model #

void init() {

void viewCreated() {}

void viewRefresh() {}

void initState() {}

void viewDisposed() {}

void viewResumed() {}

void viewInactive() {}

void viewPaused() {}

void viewSuspending() {}

Authors #

This project developed by DipDev Studio Team: @Dimoshka

File with heading #

[0.4.4] - 13.12.2019

  • MVVM - casting architecture

[0.4.3] - 27.05.2019

  • Fix the many runs callbacks. You can use:
  • OnCallCommand.setCallback() - the list of calbacks is cleared or
  • OnCallCommand.addCallback() - add to list calbacks

[0.4.2] - 13.05.2019

  • Added async to init methods

[0.4.0, 0.4.1] - 07.05.2019

  • Implement BaseApp as MVVM
  • Added View Events (paused, suspending, resumed etc)

[0.3.8, 0.3.9] - 04.04.2019

  • Added Base App parameters

[0.3.7] - 01.04.2019

  • Implement Base App
  • Implement loading widget

[0.3.6] - 27.02.2019

  • Fix navigation.

[0.3.5] - 18.02.2019

  • Refactoring.

[0.3.4] - 11.02.2019

  • Fix package to use with stateful and stateless widgets.

[0.3.3] - 02.02.2019

  • Fix view created action.

[0.3.0] - 25.01.2019

  • Release.

[0.0.2] - 24.01.2019

  • Fixes.

[0.0.1] - 22.01.2019

  • First Alpha version of package.


example #

A new Flutter project.

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:

  flutter_arhitecture_helper: ^0.4.4

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or 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:flutter_arhitecture_helper/data/entities/base_entity.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/base_app/base_app.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/base_app/base_app_config.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/base_app/base_app_model.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/base_app/base_app_view.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/base_app/base_app_view_model.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/stateful/base_model.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/stateful/base_screen.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/stateful/base_view.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/stateful/base_view_model.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/stateless/base_model.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/stateless/base_screen.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/stateless/base_view.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/stateless/base_view_model.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/utils/base_model_utils.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/utils/base_view_model_utils.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/mvvm/utils/base_view_utils.dart';
import 'package:flutter_arhitecture_helper/presentation/ui/widgets/loading_widget.dart';
import 'package:flutter_arhitecture_helper/presentation/utils/validators.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 Jan 21, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health suggestions

Fix lib/presentation/ui/mvvm/stateful/base_view.dart. (-0.50 points)

Analysis of lib/presentation/ui/mvvm/stateful/base_view.dart reported 1 hint:

line 36 col 50: This function has a return type of 'Future

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies