express_app 0.0.1-b

  • README.md
  • Installing
  • Versions
  • 43

Express App #

A plugin for Flutter to better separate the app into Routers, Controller, Models, and Views easily.

Status #

Please note version's number. This is still a beta, and only published to get feedback to include suggestions while working on it.

Examples #

void main() {
  runApp(
    Express(
      router: ExpressRouter(
        {
          '/secondPage': ExpressController(
            view: SecondPage(),
          ),
          '/': ExpressController(
            view: FirstPage(),
          ),
        }
      ),
    )
    // Express is not a widget. Do not forget to call the render function
    .render()
  );
}

For more examples, please refer to their folder.

TODO #

  • Find a way for the StatefulWidget to work
  • Work on passing data
  • Modify the flow to call the router instead of simply calling the navigator.
  • Link pages using actions or events to allow a whole graph of connections easily.
  • Use models

Use this package as a library

1. Depend on it

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


dependencies:
  express_app: ^0.0.1-b

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:express_app/controller.dart';
import 'package:express_app/express.dart';
import 'package:express_app/router.dart';
import 'package:express_app/view.dart';
  
Version Uploaded Documentation Archive
0.0.3-b Feb 20, 2019 Go to the documentation of express_app 0.0.3-b Download express_app 0.0.3-b archive
0.0.2-b Feb 5, 2019 Go to the documentation of express_app 0.0.2-b Download express_app 0.0.2-b archive
0.0.1-b Jan 27, 2019 Go to the documentation of express_app 0.0.1-b Download express_app 0.0.1-b archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
65
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

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

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.3.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/controller.dart.

Run flutter format to format lib/controller.dart.

Format lib/express.dart.

Run flutter format to format lib/express.dart.

Format lib/router.dart.

Run flutter format to format lib/router.dart.

Format lib/view.dart.

Run flutter format to format lib/view.dart.

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Package is pre-release. (-5 points)

Pre-release versions should be used with caution; their API can change in breaking ways.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and express_app.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
cupertino_icons ^0.1.2 0.1.2
flutter 0.0.0
Transitive dependencies
collection 1.14.11
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