fly 0.0.3

  • README.md
  • Installing
  • Versions
  • new45

Fly

Best Flutter Framework for Beautiful Code and Programming Artisans.

Description

The purpose of this framework is to encourage organized code, and break files up into their proper function.

This framework can work and be incorporated into any existing project! All you need to do is run the init command in the project directory.

We break up the project into 3 main directories.

  1. Services - contain logic that is used in multiple widgets.
  2. Styles - contains styles that are used in multiple widgets.
  3. Widgets - a directory that contains all the project's widgets

When creating a widget our CLI will automatically create the correct directory structure, break the widget into an organized set of files, and import the correct files needed to run.

It creates 3 files

  1. Style - contains that particular widget's styles
  2. View - contains the view and look of that widget
  3. Widget - contains that particular widget logic.

For Example:

if you create a widget called login

widgets
--login
----login.style.dart
----login.view.dart
----login.widget.dart

Init

initilize existing project to work with existing commands

cd to/flutter/project
fly init

creats directories and files for the fly framework

services
styles
--default.style.dart
widgets
--home
----home.style.dart
----home.view.dart
----home.widget.dart

Generate Widget

Create an additional widget. By default this will create a stateless widget

fly generate widget login

or

Create a Sateless Widget

fly generate widget:stateless login

Shortcut!

gw: stands for "generate widget", this helps reduce time it takes to type out the full thing.

fly gw:stateless login

Create a Sateful Widget

fly generate widget:stateful login

Shortcut!

fly gw:stateful login

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate fly

2. Use it

The package has the following executables:


$ fly
Version Uploaded Documentation Archive
0.0.3 Jul 30, 2018 Go to the documentation of fly 0.0.3 Download fly 0.0.3 archive
0.0.2 Jul 30, 2018 Go to the documentation of fly 0.0.2 Download fly 0.0.2 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
5
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
64
Overall:
Weighted score of the above. [more]
45
Learn more about scoring.

We analyzed this package on Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status tool failures using:

  • Dart: 2.0.0
  • pana: 0.11.8

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Issues and suggestions

Fix dependencies in pubspec.yaml.

Running pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.0.0.
 
 Because fly depends on ansicolor >=0.0.2 <1.0.1 which requires SDK version <2.0.0, version solving failed.

Fix platform conflicts.

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Maintain CHANGELOG.md.

Changelog entries help clients to follow the progress in your code.

The description is too short.

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

Maintain an example.

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use fly.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.0 <=2.0.0