Skip to content

Commit 8e3c83f

Browse files
author
github-actions
committed
Prepare version 0.6.4
1 parent bf2cae7 commit 8e3c83f

File tree

7 files changed

+115
-70
lines changed

7 files changed

+115
-70
lines changed

CHANGELOG.md

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,123 @@
11
# Changelog
22

3+
## [0.6.4]
4+
5+
- Released @ 1/2025 (UTC)
6+
- chore: Update readme and templates
7+
38
## [0.6.3]
49

5-
- Released @ 12/2024 (UTC)
10+
- Released @ 1/2025 (UTC)
611
- chore: Update dependencies
712

813
## [0.6.2]
914

10-
- Released @ 12/2024 (UTC)
15+
- Released @ 1/2025 (UTC)
1116
- chore: Upgrade dependencies
1217

1318
## [0.6.1]
1419

15-
- Released @ 12/2024 (UTC)
20+
- Released @ 1/2025 (UTC)
1621
- chore: Update dependencies
1722

1823
## [0.6.0]
1924

20-
- Released @ 12/2024 (UTC)
25+
- Released @ 1/2025 (UTC)
2126
- breaking: Clean up and refactor
2227

2328
## [0.5.2]
2429

25-
- Released @ 12/2024 (UTC)
30+
- Released @ 1/2025 (UTC)
2631
- fix: Annoying bugfix
2732

2833
## [0.5.1]
2934

30-
- Released @ 12/2024 (UTC)
35+
- Released @ 1/2025 (UTC)
3136
- fix: Fix annoying bug
3237

3338
## [0.5.0]
3439

35-
- Released @ 12/2024 (UTC)
40+
- Released @ 1/2025 (UTC)
3641
- breaking: Make improvements to generated output
3742

3843
## [0.4.1]
3944

40-
- Released @ 12/2024 (UTC)
45+
- Released @ 1/2025 (UTC)
4146
- fix: Add missing scripts
4247

4348
## [0.4.0]
4449

45-
- Released @ 12/2024 (UTC)
50+
- Released @ 1/2025 (UTC)
4651
- breaking: Update templates and set default template
4752

4853
## [0.3.1]
4954

50-
- Released @ 12/2024 (UTC)
55+
- Released @ 1/2025 (UTC)
5156
- chore: Update dependencies
5257

5358
## [0.3.0]
5459

55-
- Released @ 12/2024 (UTC)
60+
- Released @ 1/2025 (UTC)
5661
- breaking: Update dependencies
5762

5863
## [0.2.7]
5964

60-
- Released @ 12/2024 (UTC)
65+
- Released @ 1/2025 (UTC)
6166
- fix: Fix another bug with case types
6267

6368
## [0.2.6]
6469

65-
- Released @ 12/2024 (UTC)
70+
- Released @ 1/2025 (UTC)
6671
- fix: Fix issue with key types in screen bindings generator
6772

6873
## [0.2.5]
6974

70-
- Released @ 12/2024 (UTC)
75+
- Released @ 1/2025 (UTC)
7176
- chore: Update default executables
7277

7378
## [0.2.4]
7479

75-
- Released @ 12/2024 (UTC)
80+
- Released @ 1/2025 (UTC)
7681
- fix: Fix issue with executable
7782

7883
## [0.2.3]
7984

80-
- Released @ 12/2024 (UTC)
85+
- Released @ 1/2025 (UTC)
8186
- chore: Update dependencies
8287

8388
## [0.2.2]
8489

85-
- Released @ 12/2024 (UTC)
90+
- Released @ 1/2025 (UTC)
8691
- chore: Update dependencies
8792

8893
## [0.2.1]
8994

90-
- Released @ 12/2024 (UTC)
95+
- Released @ 1/2025 (UTC)
9196
- chore: Update dependencies
9297

9398
## [0.2.0]
9499

95-
- Released @ 12/2024 (UTC)
100+
- Released @ 1/2025 (UTC)
96101
- breaking: Update dependencies and docs
97102

98103
## [0.1.3]
99104

100-
- Released @ 12/2024 (UTC)
105+
- Released @ 1/2025 (UTC)
101106
- fix: Fix dependency issue with analyzer package
102107

103108
## [0.1.2]
104109

105-
- Released @ 12/2024 (UTC)
110+
- Released @ 1/2025 (UTC)
106111
- chore: Removed ScreenTr from bindings
107112

108113
## [0.1.1]
109114

110-
- Released @ 12/2024 (UTC)
115+
- Released @ 1/2025 (UTC)
111116
- chore: Update template
112117

113118
## [0.1.0]
114119

115-
- Released @ 12/2024 (UTC)
120+
- Released @ 1/2025 (UTC)
116121
- Update
117122
- chore: Update templates
118123
- chore: Update dependencies

example/lib/screens/home_screen/_bindings.g.dart

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class HomeScreenConfiguration extends ModelScreenConfiguration {
4343
title: null,
4444
path: _PATH,
4545
args: args ?? {},
46-
isAccessibleOnlyIfLoggedInAndVerified: _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED,
46+
isAccessibleOnlyIfLoggedInAndVerified:
47+
_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED,
4748
isAccessibleOnlyIfLoggedIn: _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN,
4849
isAccessibleOnlyIfLoggedOut: _IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT,
4950
isRedirectable: _IS_REDIRECTABLE,
@@ -66,14 +67,16 @@ class HomeScreenConfiguration extends ModelScreenConfiguration {
6667
static const TR_KEY = _TR_KEY;
6768

6869
/// Whether the corresponding [Screen] is only accessible if the user is logged in and verified.
69-
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_IN = _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN;
70+
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_IN =
71+
_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN;
7072

7173
/// Whether the corresponding [Screen] is only accessible if the user is logged in.
7274
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED =
7375
_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED;
7476

7577
/// Whether the corresponding [Screen] is only accessible if the user is logged out.
76-
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT = _IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT;
78+
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT =
79+
_IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT;
7780

7881
/// Whether the corresponding [Screen] is redirectable, i.e., if it can be requested from the browser URL.
7982
static const IS_REDIRECTABLE = _IS_REDIRECTABLE;
@@ -120,10 +123,12 @@ final generatedHomeScreenRoute = GoRoute(
120123
extra: extra ??
121124
urlToScreenConfiguration(
122125
url: state.uri,
123-
isAccessibleOnlyIfLoggedIn: HomeScreenConfiguration.IS_ACCESSIBLE_ONLY_IF_LOGGED_IN,
124-
isAccessibleOnlyIfLoggedInAndVerified:
125-
HomeScreenConfiguration.IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED,
126-
isAccessibleOnlyIfLoggedOut: HomeScreenConfiguration.IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT,
126+
isAccessibleOnlyIfLoggedIn:
127+
HomeScreenConfiguration.IS_ACCESSIBLE_ONLY_IF_LOGGED_IN,
128+
isAccessibleOnlyIfLoggedInAndVerified: HomeScreenConfiguration
129+
.IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED,
130+
isAccessibleOnlyIfLoggedOut:
131+
HomeScreenConfiguration.IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT,
127132
isRedirectable: HomeScreenConfiguration.IS_REDIRECTABLE,
128133
title: null,
129134
),
@@ -143,7 +148,8 @@ Screen? makerHomeScreen(
143148
bool isLoggedIn,
144149
bool isLoggedOut,
145150
) {
146-
if ((_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED && !isLoggedInAndVerified) ||
151+
if ((_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED &&
152+
!isLoggedInAndVerified) ||
147153
(_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN && !isLoggedIn) ||
148154
(_IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT && !isLoggedOut)) {
149155
return null;
@@ -154,7 +160,8 @@ Screen? makerHomeScreen(
154160
extra: extra,
155161
);
156162
}
157-
if (RegExp(r'^(' + _PATH + r')([?/].*)?$').hasMatch(Uri.decodeComponent(extra.path ?? ''))) {
163+
if (RegExp(r'^(' + _PATH + r')([?/].*)?$')
164+
.hasMatch(Uri.decodeComponent(extra.path ?? ''))) {
158165
final temp = HomeScreenConfiguration.optional(
159166
args: extra.args,
160167
);
@@ -172,11 +179,12 @@ Screen? makerHomeScreen(
172179
typedef THomeScreenController = _ControllerBroker<HomeScreen, _State>;
173180

174181
/// A [AdaptiveScreenState] type corresponding to [HomeScreen].
175-
typedef TAdaptiveHomeScreenState
176-
= AdaptiveScreenState<HomeScreen, HomeScreenConfiguration, HomeScreenController>;
182+
typedef TAdaptiveHomeScreenState = AdaptiveScreenState<HomeScreen,
183+
HomeScreenConfiguration, HomeScreenController>;
177184

178185
/// A [ScreenState] type corresponding to [HomeScreen].
179-
typedef THomeScreenState = ScreenState<HomeScreen, HomeScreenConfiguration, HomeScreenController>;
186+
typedef THomeScreenState
187+
= ScreenState<HomeScreen, HomeScreenConfiguration, HomeScreenController>;
180188

181189
/// A [ScreenPageState] type corresponding to [HomeScreen].
182190
typedef THomeScreenPageState<T extends ScreenPage>

example/lib/screens/login_screen/_bindings.g.dart

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class LoginScreenConfiguration extends ModelScreenConfiguration {
4343
title: null,
4444
path: _PATH,
4545
args: args ?? {},
46-
isAccessibleOnlyIfLoggedInAndVerified: _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED,
46+
isAccessibleOnlyIfLoggedInAndVerified:
47+
_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED,
4748
isAccessibleOnlyIfLoggedIn: _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN,
4849
isAccessibleOnlyIfLoggedOut: _IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT,
4950
isRedirectable: _IS_REDIRECTABLE,
@@ -66,14 +67,16 @@ class LoginScreenConfiguration extends ModelScreenConfiguration {
6667
static const TR_KEY = _TR_KEY;
6768

6869
/// Whether the corresponding [Screen] is only accessible if the user is logged in and verified.
69-
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_IN = _IS_ACCESSIBLE_ONLY_IF_LOGGED_IN;
70+
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_IN =
71+
_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN;
7072

7173
/// Whether the corresponding [Screen] is only accessible if the user is logged in.
7274
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED =
7375
_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED;
7476

7577
/// Whether the corresponding [Screen] is only accessible if the user is logged out.
76-
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT = _IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT;
78+
static const IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT =
79+
_IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT;
7780

7881
/// Whether the corresponding [Screen] is redirectable, i.e., if it can be requested from the browser URL.
7982
static const IS_REDIRECTABLE = _IS_REDIRECTABLE;
@@ -120,9 +123,10 @@ final generatedLoginScreenRoute = GoRoute(
120123
extra: extra ??
121124
urlToScreenConfiguration(
122125
url: state.uri,
123-
isAccessibleOnlyIfLoggedIn: LoginScreenConfiguration.IS_ACCESSIBLE_ONLY_IF_LOGGED_IN,
124-
isAccessibleOnlyIfLoggedInAndVerified:
125-
LoginScreenConfiguration.IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED,
126+
isAccessibleOnlyIfLoggedIn:
127+
LoginScreenConfiguration.IS_ACCESSIBLE_ONLY_IF_LOGGED_IN,
128+
isAccessibleOnlyIfLoggedInAndVerified: LoginScreenConfiguration
129+
.IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED,
126130
isAccessibleOnlyIfLoggedOut:
127131
LoginScreenConfiguration.IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT,
128132
isRedirectable: LoginScreenConfiguration.IS_REDIRECTABLE,
@@ -144,7 +148,8 @@ Screen? makerLoginScreen(
144148
bool isLoggedIn,
145149
bool isLoggedOut,
146150
) {
147-
if ((_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED && !isLoggedInAndVerified) ||
151+
if ((_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN_AND_VERIFIED &&
152+
!isLoggedInAndVerified) ||
148153
(_IS_ACCESSIBLE_ONLY_IF_LOGGED_IN && !isLoggedIn) ||
149154
(_IS_ACCESSIBLE_ONLY_IF_LOGGED_OUT && !isLoggedOut)) {
150155
return null;
@@ -155,7 +160,8 @@ Screen? makerLoginScreen(
155160
extra: extra,
156161
);
157162
}
158-
if (RegExp(r'^(' + _PATH + r')([?/].*)?$').hasMatch(Uri.decodeComponent(extra.path ?? ''))) {
163+
if (RegExp(r'^(' + _PATH + r')([?/].*)?$')
164+
.hasMatch(Uri.decodeComponent(extra.path ?? ''))) {
159165
final temp = LoginScreenConfiguration.optional(
160166
args: extra.args,
161167
);
@@ -173,8 +179,8 @@ Screen? makerLoginScreen(
173179
typedef TLoginScreenController = _ControllerBroker<LoginScreen, _State>;
174180

175181
/// A [AdaptiveScreenState] type corresponding to [LoginScreen].
176-
typedef TAdaptiveLoginScreenState
177-
= AdaptiveScreenState<LoginScreen, LoginScreenConfiguration, LoginScreenController>;
182+
typedef TAdaptiveLoginScreenState = AdaptiveScreenState<LoginScreen,
183+
LoginScreenConfiguration, LoginScreenController>;
178184

179185
/// A [ScreenState] type corresponding to [LoginScreen].
180186
typedef TLoginScreenState

lib/src/extract_insights_from_file.dart

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

lib/src/gen_screen_access_app.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ Future<void> genScreenAccessApp(
9696
'Looking for files..',
9797
);
9898
final filePathStream0 = PathExplorer(inputPath).exploreFiles();
99-
final filePathStream1 = filePathStream0.where((e) => _isAllowedFileName(e.path));
99+
final filePathStream1 =
100+
filePathStream0.where((e) => _isAllowedFileName(e.path));
100101
List<FilePathExplorerFinding> findings;
101102
try {
102103
findings = await filePathStream1.toList();
@@ -240,7 +241,8 @@ class TemplateInterpolator2<T> {
240241
}
241242
}
242243

243-
final _interpolator = TemplateInterpolator2<ClassInsight<GenerateScreenBindings>>(
244+
final _interpolator =
245+
TemplateInterpolator2<ClassInsight<GenerateScreenBindings>>(
244246
{
245247
'___SCREEN_MAKERS___': (insight) {
246248
final a = insight.className.toPascalCase();

lib/src/gen_screen_app.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ Future<void> genScreenApp(
2828
}) async {
2929
final parser = CliParser(
3030
title: 'dev-cetera.com/df/tools',
31-
description: 'A tool for generating screen/page files for Flutter projects.',
31+
description:
32+
'A tool for generating screen/page files for Flutter projects.',
3233
example: 'gen-screen -i .',
3334
additional:
3435
'For contributions, error reports and information, visit: https://github.com/dev-cetera.',

0 commit comments

Comments
 (0)