Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prongbang/flutter_101
Training Flutter Modular Architecture
https://github.com/prongbang/flutter_101
flutter flutter-101 flutter-modular modular
Last synced: about 1 month ago
JSON representation
Training Flutter Modular Architecture
- Host: GitHub
- URL: https://github.com/prongbang/flutter_101
- Owner: prongbang
- Created: 2021-04-18T15:07:27.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-30T05:55:00.000Z (almost 2 years ago)
- Last Synced: 2024-10-24T08:06:04.679Z (3 months ago)
- Topics: flutter, flutter-101, flutter-modular, modular
- Language: Dart
- Homepage:
- Size: 574 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flutter_101
Flutter 101 application.
- Slide: https://docs.google.com/presentation/d/1pXJIa3Pdygfw8GzQtKoNYpAsY5a2-1KTa8vzgN0sQdo?usp=sharing
### Enable by platforms
```bash
$ 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
```bash
$ cd flutter_101
$ flutter create --platforms=web,windows,macos,linux .
```### List the devices
```bash
$ 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
```yml
dependencies:
flutter:
sdk: flutter# locals package
wecmaterial:
path: ./widgets/wecmaterial
login:
path: ./features/login
```- flutter_101/features/pubspec.yaml
```yml
dependencies:
flutter:
sdk: flutter# locals package
wecmaterial:
path: ../../widgets/wecmaterial
```