|
1 | | -<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img align="right" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="48"></a> |
2 | | -<a href="https://discord.gg/gEQ8y2nfyX" target="_blank"><img align="right" src="https://raw.githubusercontent.com/dev-cetera/.github/refs/heads/main/assets/icons/discord_icon/discord_icon.svg" height="48"></a> |
| 1 | +[](https://github.com/dev-cetera) |
3 | 2 |
|
4 | | -Dart & Flutter Packages by dev-cetera.com & contributors. |
5 | | - |
6 | | -[](https://github.com/sponsors/dev-cetera) |
7 | | -[](https://www.patreon.com/c/RobertMollentze) |
8 | 3 | [](https://pub.dev/packages/df_screen_core) |
9 | | -[](https://github.com/dev-cetera/df_screen_core/tree/v0.5.5) |
10 | | -[](https://raw.githubusercontent.com/dev-cetera/df_screen_core/main/LICENSE) |
| 4 | +[](https://github.com/dev-cetera/df_screen_core/tree/v0.5.7) |
| 5 | +[](https://www.buymeacoffee.com/dev_cetera) |
| 6 | +[](https://github.com/sponsors/dev-cetera) |
| 7 | +[](https://www.patreon.com/robelator) |
| 8 | +[](https://discord.gg/gEQ8y2nfyX) |
| 9 | +[](https://www.instagram.com/dev_cetera/) |
| 10 | +[](https://raw.githubusercontent.com/dev-cetera/df_screen_core/main/LICENSE) |
11 | 11 |
|
12 | 12 | --- |
13 | 13 |
|
14 | | -[](https://github.com/dev-cetera) |
15 | | - |
16 | 14 | <!-- BEGIN _README_CONTENT --> |
17 | 15 |
|
18 | 16 | ## Summary |
19 | 17 |
|
20 | | -A package that provides core code for the df_screen package. |
| 18 | +Core data models for the [df_screen](https://pub.dev/packages/df_screen) package. |
21 | 19 |
|
22 | | -<!-- END _README_CONTENT --> |
| 20 | +## Usage |
23 | 21 |
|
24 | | ---- |
| 22 | +```dart |
| 23 | +import 'package:df_screen_core/df_screen_core.dart'; |
25 | 24 |
|
26 | | -☝️ Please refer to the [API reference](https://pub.dev/documentation/df_screen_core/) for more information. |
| 25 | +final config = ModelScreenConfiguration( |
| 26 | + path: '/home', |
| 27 | + title: 'Home Screen', |
| 28 | + isAccessibleOnlyIfLoggedIn: true, |
| 29 | + args: {'userId': '123'}, |
| 30 | +); |
27 | 31 |
|
28 | | ---- |
| 32 | +print(config.path); // /home |
| 33 | +print(config.arg<String>('userId')); // 123 |
| 34 | +``` |
29 | 35 |
|
30 | | -## 💬 Contributing and Discussions |
| 36 | +## Models |
31 | 37 |
|
32 | | -This is an open-source project, and we warmly welcome contributions from everyone, regardless of experience level. Whether you're a seasoned developer or just starting out, contributing to this project is a fantastic way to learn, share your knowledge, and make a meaningful impact on the community. |
| 38 | +- `ModelScreenConfiguration` - Screen config with path, title, access control, and args |
| 39 | +- `ModelGenerateScreenBindings` - Code generation config for screen bindings |
33 | 40 |
|
34 | | -### ☝️ Ways you can contribute |
35 | | - |
36 | | -- **Buy me a coffee:** If you'd like to support the project financially, consider [buying me a coffee](https://www.buymeacoffee.com/dev_cetera). Your support helps cover the costs of development and keeps the project growing. |
37 | | -- **Find us on Discord:** Feel free to ask questions and engage with the community here: https://discord.gg/gEQ8y2nfyX. |
38 | | -- **Share your ideas:** Every perspective matters, and your ideas can spark innovation. |
39 | | -- **Help others:** Engage with other users by offering advice, solutions, or troubleshooting assistance. |
40 | | -- **Report bugs:** Help us identify and fix issues to make the project more robust. |
41 | | -- **Suggest improvements or new features:** Your ideas can help shape the future of the project. |
42 | | -- **Help clarify documentation:** Good documentation is key to accessibility. You can make it easier for others to get started by improving or expanding our documentation. |
43 | | -- **Write articles:** Share your knowledge by writing tutorials, guides, or blog posts about your experiences with the project. It's a great way to contribute and help others learn. |
44 | | - |
45 | | -No matter how you choose to contribute, your involvement is greatly appreciated and valued! |
| 41 | +<!-- END _README_CONTENT --> |
46 | 42 |
|
47 | | -### ☕ We drink a lot of coffee... |
| 43 | +--- |
48 | 44 |
|
49 | | -If you're enjoying this package and find it valuable, consider showing your appreciation with a small donation. Every bit helps in supporting future development. You can donate here: https://www.buymeacoffee.com/dev_cetera |
| 45 | +For more details, see the [API reference](https://pub.dev/documentation/df_screen_core/). |
50 | 46 |
|
51 | | -<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="40"></a> |
| 47 | +## Contributing |
52 | 48 |
|
53 | | -## 🧑⚖️ License |
| 49 | +Join our [Discord](https://discord.gg/gEQ8y2nfyX) or support us on [Buy Me A Coffee](https://www.buymeacoffee.com/dev_cetera). |
54 | 50 |
|
55 | | -This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_screen_core/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_screen_core/main/LICENSE) for more information. |
| 51 | +## License |
56 | 52 |
|
| 53 | +[MIT License](https://raw.githubusercontent.com/dev-cetera/df_screen_core/main/LICENSE) |
0 commit comments