Skip to content

Commit c97b819

Browse files
robelatorclaude
andcommitted
+Update and format
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 59af48f commit c97b819

File tree

9 files changed

+117
-88
lines changed

9 files changed

+117
-88
lines changed

README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
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+
[![banner](https://github.com/dev-cetera/df_generate_screen/blob/v0.8.2/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
32

4-
Dart & Flutter Packages by dev-cetera.com & contributors.
5-
6-
[![sponsor](https://img.shields.io/badge/sponsor-grey?logo=github-sponsors)](https://github.com/sponsors/dev-cetera)
7-
[![patreon](https://img.shields.io/badge/patreon-grey?logo=patreon)](https://www.patreon.com/c/RobertMollentze)
83
[![pub](https://img.shields.io/pub/v/df_generate_screen.svg)](https://pub.dev/packages/df_generate_screen)
9-
[![tag](https://img.shields.io/badge/tag-v0.8.1-purple?logo=github)](https://github.com/dev-cetera/df_generate_screen/tree/v0.8.1)
10-
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_generate_screen/main/LICENSE)
4+
[![tag](https://img.shields.io/badge/Tag-v0.8.2-purple?logo=github)](https://github.com/dev-cetera/df_generate_screen/tree/v0.8.2)
5+
[![buymeacoffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/dev_cetera)
6+
[![sponsor](https://img.shields.io/badge/Sponsor-grey?logo=github-sponsors&logoColor=pink)](https://github.com/sponsors/dev-cetera)
7+
[![patreon](https://img.shields.io/badge/Patreon-grey?logo=patreon)](https://www.patreon.com/robelator)
8+
[![discord](https://img.shields.io/badge/Discord-5865F2?logo=discord&logoColor=white)](https://discord.gg/gEQ8y2nfyX)
9+
[![instagram](https://img.shields.io/badge/Instagram-E4405F?logo=instagram&logoColor=white)](https://www.instagram.com/dev_cetera/)
10+
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_generate_screen/main/LICENSE)
1111

1212
---
1313

14-
[![banner](https://github.com/dev-cetera/df_safer_dart/blob/v0.8.1/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
15-
1614
<!-- BEGIN _README_CONTENT -->
1715

1816
A tool to generate ready-made screen templates for your Flutter app (uses [df_screen_core](https://pub.dev/packages/df_screen_core)).
1917

2018
Install the Visual Studio Code extension here: https://marketplace.visualstudio.com/items?itemName=Dev-Cetera.dev-cetera-df-support-commands
2119

22-
2320
<!-- END _README_CONTENT -->
2421

2522
---
2623

27-
☝️ Please refer to the [API reference](https://pub.dev/documentation/df_generate_screen/) for more information.
24+
🔍 For more information, refer to the [API reference](https://pub.dev/documentation/df_generate_screen/).
2825

2926
---
3027

@@ -34,7 +31,6 @@ This is an open-source project, and we warmly welcome contributions from everyon
3431

3532
### ☝️ Ways you can contribute
3633

37-
- **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.
3834
- **Find us on Discord:** Feel free to ask questions and engage with the community here: https://discord.gg/gEQ8y2nfyX.
3935
- **Share your ideas:** Every perspective matters, and your ideas can spark innovation.
4036
- **Help others:** Engage with other users by offering advice, solutions, or troubleshooting assistance.
@@ -51,7 +47,6 @@ If you're enjoying this package and find it valuable, consider showing your appr
5147

5248
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="40"></a>
5349

54-
## 🧑‍⚖️ License
50+
## LICENSE
5551

5652
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_generate_screen/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_generate_screen/main/LICENSE) for more information.
57-

analysis_options.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
##.title
2-
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
3-
##
4-
## Copyright © dev-cetera.com & contributors.
5-
##
6-
## The use of this source code is governed by an MIT-style license described in
7-
## the LICENSE file located in this project's root directory.
8-
##
9-
## See: https://opensource.org/license/mit
10-
##
11-
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
12-
##.title~
1+
# For dev-cetera.com
2+
# Version: 1
133

144
include: package:lints/recommended.yaml
155

@@ -31,6 +21,7 @@ linter:
3121
prefer_relative_imports: true
3222
prefer_single_quotes: true
3323
require_trailing_commas: true
24+
unawaited_futures: true
3425
unnecessary_this: true
3526

3627
analyzer:
@@ -42,21 +33,26 @@ analyzer:
4233
strict-raw-types: true
4334
exclude:
4435
- build/**
36+
# - '**.g.dart'
4537

4638
errors:
47-
unused_label: ignore
4839
always_declare_return_types: error
4940
avoid_renaming_method_parameters: error
5041
avoid_type_to_string: error
42+
close_sinks: error
43+
collection_methods_unrelated_type: error
5144
depend_on_referenced_packages: error
5245
flutter_style_todos: error
5346
invalid_override_of_non_virtual_member: error
5447
invalid_use_of_protected_member: error
48+
missing_return: error
5549
no_leading_underscores_for_local_identifiers: error
5650
prefer_final_in_for_each: error
5751
prefer_relative_imports: error
52+
record_literal_one_positional_no_trailing_comma: error
5853
unnecessary_new: error
5954
unrelated_type_equality_checks: error
55+
unused_label: ignore
6056
use_key_in_widget_constructors: error
6157

6258
formatter:

bin/analysis_options.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
##.title
2-
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
3-
##
4-
## Copyright © dev-cetera.com & contributors.
5-
##
6-
## The use of this source code is governed by an MIT-style license described in
7-
## the LICENSE file located in this project's root directory.
8-
##
9-
## See: https://opensource.org/license/mit
10-
##
11-
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
12-
##.title~
1+
# For dev-cetera.com
2+
# Version: 1
133

144
include: package:lints/recommended.yaml
155

@@ -31,6 +21,7 @@ linter:
3121
prefer_relative_imports: true
3222
prefer_single_quotes: true
3323
require_trailing_commas: true
24+
unawaited_futures: true
3425
unnecessary_this: true
3526

3627
analyzer:
@@ -42,21 +33,26 @@ analyzer:
4233
strict-raw-types: true
4334
exclude:
4435
- build/**
36+
# - '**.g.dart'
4537

4638
errors:
47-
unused_label: ignore
4839
always_declare_return_types: error
4940
avoid_renaming_method_parameters: error
5041
avoid_type_to_string: error
42+
close_sinks: error
43+
collection_methods_unrelated_type: error
5144
depend_on_referenced_packages: error
5245
flutter_style_todos: error
5346
invalid_override_of_non_virtual_member: error
5447
invalid_use_of_protected_member: error
48+
missing_return: error
5549
no_leading_underscores_for_local_identifiers: error
5650
prefer_final_in_for_each: error
5751
prefer_relative_imports: error
52+
record_literal_one_positional_no_trailing_comma: error
5853
unnecessary_new: error
5954
unrelated_type_equality_checks: error
55+
unused_label: ignore
6056
use_key_in_widget_constructors: error
6157

6258
formatter:

bin/pubspec.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@
1313

1414
name: generate_screens
1515
homepage: https://dev-cetera.com/
16-
repository: https://github.com/robmllze/df_generate_screen
1716
funding:
1817
- https://www.buymeacoffee.com/dev_cetera
19-
- https://www.patreon.com/c/RobertMollentze
20-
- https://github.com/sponsors/robmllze
18+
- https://www.patreon.com/c/robelator
19+
- https://github.com/sponsors/robelator
20+
- https://www.patreon.com/c/robelator
21+
- https://github.com/sponsors/robelator
22+
- https://www.buymeacoffee.com/dev_cetera
23+
24+
2125
publish_to: none
2226

2327
## -----------------------------------------------------------------------------

lib/src/extract_insights_from_file.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Future<List<ClassInsight<ModelGenerateScreenBindings>>> extractInsightsFromFile(
3434
final insights = <ClassInsight<ModelGenerateScreenBindings>>[];
3535
await analyzer.analyze(
3636
inclClassAnnotations: {ModelGenerateScreenBindings.CLASS_NAME},
37-
onClassAnnotationField: (params) async => temp = _updateFromClassAnnotationField(temp, params),
37+
onClassAnnotationField: (params) async =>
38+
temp = _updateFromClassAnnotationField(temp, params),
3839
onPreAnalysis: (_, __) => temp = const ModelGenerateScreenBindings(),
3940
onPostAnalysis: (params) {
4041
final fullPathName = params.fullFilePath;
@@ -65,7 +66,8 @@ ModelGenerateScreenBindings _updateFromClassAnnotationField(
6566
(k, v) => MapEntry(k?.toStringValue(), v?.toStringValue()),
6667
),
6768
);
68-
case ModelGenerateScreenBindingsFieldNames.isAccessibleOnlyIfLoggedInAndVerified:
69+
case ModelGenerateScreenBindingsFieldNames
70+
.isAccessibleOnlyIfLoggedInAndVerified:
6971
return annotation.copyWith(
7072
isAccessibleOnlyIfLoggedInAndVerified: params.fieldValue.toBoolValue(),
7173
);

lib/src/generate_screen.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Future<void> generateScreen(
3434
Log.enableReleaseAsserts = true;
3535
final parser = CliParser(
3636
title: 'dev-cetera.com',
37-
description: 'A tool for generating screen/page files for Flutter projects.',
37+
description:
38+
'A tool for generating screen/page files for Flutter projects.',
3839
example: 'df_generate_screen -i .',
3940
additional:
4041
'For contributions, error reports and information, visit: https://github.com/dev-cetera.',
@@ -88,7 +89,8 @@ Future<void> generateScreen(
8889
final templateData = <String, String>{};
8990
for (final template in templates) {
9091
Log.printWhite('Reading template at: $template...');
91-
final result = await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
92+
final result =
93+
await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
9294

9395
if (result.isErr()) {
9496
Log.printRed(' Failed to read template!');

lib/src/generate_screen_access.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ Future<void> generateScreenAccess(
111111
final templateData = <String, String>{};
112112
for (final template in templates) {
113113
Log.printWhite('Reading template at: $template...');
114-
final result = await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
114+
final result =
115+
await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
115116

116117
if (result.isErr()) {
117118
Log.printRed(' Failed to read template!');
@@ -184,7 +185,8 @@ class TemplateInterpolator2<T> {
184185
}
185186
}
186187

187-
final _interpolator = TemplateInterpolator2<ClassInsight<GenerateScreenBindings>>({
188+
final _interpolator =
189+
TemplateInterpolator2<ClassInsight<GenerateScreenBindings>>({
188190
'___ROUTE_BUILDERS___': (insight) {
189191
final a = insight.className.toPascalCase();
190192
return ['${a}RouteBuilder()'].join('\n');

0 commit comments

Comments
 (0)