flutter_arhitecture_helper 0.4.3

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.

dependencies:
  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);
view.navigateBack(model.context);

Refresh UI from View Model #

view.updateUI();

Events in View Model #

@override
void init() {
  super.init();
}

@override
void viewCreated() {}

@override
void viewRefresh() {}

@override
void initState() {}

@override
void viewDisposed() {}

@override
void viewResumed() {}

@override
void viewInactive() {}

@override
void viewPaused() {}

@override
void viewSuspending() {}

Authors #

This project developed by DipDev Studio Team: @Dimoshka

File with heading #

[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/README.md

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:


dependencies:
  flutter_arhitecture_helper: ^0.4.3

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

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

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

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

Format lib/presentation/utils/validators.dart.

Run flutter format to format lib/presentation/utils/validators.dart.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://git.dipdev.studio/open-source/flutter/arhitecture-helper was unreachable.

Dependencies

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