Skip to content

prongbang/flutter_101

Repository files navigation

flutter_101

Flutter 101 application.

Enable by platforms

$ flutter config --enable-web
$ flutter config --enable-windows-desktop
$ flutter config --enable-macos-desktop
$ flutter config --enable-linux-desktop

Add platforms support to an existing app

$ cd flutter_101
$ flutter create --platforms=web,windows,macos,linux .

List the devices

$ flutter devices

Create Feature Package

make create_feature name=login

Output:

flutter_101
└── features
    └── login
        ├── CHANGELOG.md
        ├── LICENSE
        ├── README.md
        ├── lib
        │   └── login.dart
        ├── login.iml
        ├── pubspec.lock
        ├── pubspec.yaml
        └── test
            └── login_test.dart

Create Widgets Package

make create_widget name=wecmaterial

Output:

flutter_101
└── widgets
    └── wecmaterial
        ├── CHANGELOG.md
        ├── LICENSE
        ├── README.md
        ├── lib
        │   └── wecmaterial.dart
        ├── wecmaterial.iml
        ├── pubspec.lock
        ├── pubspec.yaml
        └── test
            └── wecmaterial_test.dart

Using Local Package

  • flutter_101/pubspec.yaml
dependencies:
  flutter:
    sdk: flutter

  # locals package
  wecmaterial:
    path: ./widgets/wecmaterial
  login:
    path: ./features/login
  • flutter_101/features/pubspec.yaml
dependencies:
  flutter:
    sdk: flutter

  # locals package
  wecmaterial:
    path: ../../widgets/wecmaterial

About

Training Flutter Modular Architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published