-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from wednesday-solutions/mason
Add support for mason and create destinations template
- Loading branch information
Showing
57 changed files
with
524 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
OPEN_WEATHER_API_KEY=YOUR_API_KEY | ||
OPEN_WEATHER_BASE_URL=https://api.openweathermap.org/ | ||
USE_GOOGLE_FONTS=false | ||
RENDER_FONTS_IN_TEST=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ analyzer: | |
- "**.gr.dart" | ||
- "**/translation_keys.dart" | ||
- "**/translation_loader.dart" | ||
- "bricks/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 0.1.0+1 | ||
|
||
- TODO: Describe initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TODO: Add your license here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# destination | ||
|
||
[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason) | ||
|
||
A new brick created with the Mason CLI. | ||
|
||
_Generated by [mason][1] 🧱_ | ||
|
||
## Getting Started 🚀 | ||
|
||
This is a starting point for a new brick. | ||
A few resources to get you started if this is your first brick template: | ||
|
||
- [Official Mason Documentation][2] | ||
- [Code generation with Mason Blog][3] | ||
- [Very Good Livestream: Felix Angelov Demos Mason][4] | ||
- [Flutter Package of the Week: Mason][5] | ||
- [Observable Flutter: Building a Mason brick][6] | ||
- [Meet Mason: Flutter Vikings 2022][7] | ||
|
||
[1]: https://github.com/felangel/mason | ||
[2]: https://docs.brickhub.dev | ||
[3]: https://verygood.ventures/blog/code-generation-with-mason | ||
[4]: https://youtu.be/G4PTjA6tpTU | ||
[5]: https://youtu.be/qjA0JFiPMnQ | ||
[6]: https://youtu.be/o8B1EfcUisw | ||
[7]: https://youtu.be/LXhgiF5HiQg |
15 changes: 15 additions & 0 deletions
15
....snakeCase()}}/widgets/{{name.snakeCase()}}_page_body/{{name.snakeCase()}}_page_body.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
|
||
class {{name.pascalCase()}}PageBody extends ConsumerWidget { | ||
const {{name.pascalCase()}}PageBody({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context, WidgetRef ref) { | ||
final {{name.camelCase()}}ViewModel = ref.watch({{name.camelCase()}}ViewModelProvider.notifier); | ||
|
||
return {{name.pascalCase()}}PageBodyContent(); | ||
} | ||
} |
Oops, something went wrong.