Skip to content

Commit cb54777

Browse files
committed
+chore: Update dependencies
1 parent aa4ceca commit cb54777

File tree

2 files changed

+10
-47
lines changed

2 files changed

+10
-47
lines changed

lib/src/gen_screen_app.dart

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ Future<void> genScreenApp(
3535
'For contributions, error reports and information, visit: https://github.com/DevCetra.',
3636
params: [
3737
DefaultFlags.HELP.flag,
38-
DefaultOptions.INPUT_PATH.option.copyWith(
39-
defaultsTo: FileSystemUtility.i.currentDir,
40-
),
4138
DefaultMultiOptions.TEMPLATES.multiOption.copyWith(
4239
defaultsTo: defaultTemplates,
4340
),
@@ -70,12 +67,10 @@ Future<void> genScreenApp(
7067

7168
// ---------------------------------------------------------------------------
7269

73-
late final String inputPath;
7470
late final String name;
7571
late final List<String> templates;
7672
late final String outputPath;
7773
try {
78-
inputPath = argResults.option(DefaultOptions.INPUT_PATH.name)!;
7974
name = argResults.option('name')!;
8075
templates = argResults.multiOption(DefaultMultiOptions.TEMPLATES.name);
8176
outputPath = argResults.option(DefaultOptions.OUTPUT_PATH.name)!;
@@ -94,35 +89,6 @@ Future<void> genScreenApp(
9489

9590
// ---------------------------------------------------------------------------
9691

97-
_print(
98-
printWhite,
99-
'Looking for files..',
100-
);
101-
final filePathStream0 = PathExplorer(inputPath).exploreFiles();
102-
final filePathStream1 =
103-
filePathStream0.where((e) => _isAllowedFileName(e.path));
104-
List<FilePathExplorerFinding> findings;
105-
try {
106-
findings = await filePathStream1.toList();
107-
} catch (e) {
108-
spinner.stop();
109-
_print(
110-
printRed,
111-
'Failed to read file tree!',
112-
);
113-
exit(ExitCodes.FAILURE.code);
114-
}
115-
if (findings.isEmpty) {
116-
spinner.stop();
117-
_print(
118-
printYellow,
119-
'No files found in $inputPath!',
120-
);
121-
exit(ExitCodes.SUCCESS.code);
122-
}
123-
124-
// ---------------------------------------------------------------------------
125-
12692
final templateData = <String, String>{};
12793
for (final template in templates) {
12894
_print(
@@ -187,10 +153,6 @@ void _print(
187153
Spinner? spinner,
188154
]) {
189155
spinner?.stop();
190-
print('[gen-screen-bindings] $message');
156+
print('[gen-screen] $message');
191157
spinner?.start();
192-
}
193-
194-
bool _isAllowedFileName(String e) {
195-
return !e.endsWith('.g.dart') && e.endsWith('.dart');
196-
}
158+
}

pubspec.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
name: df_generate_screen
1414
description: A tool to generate ready-made screen templates for your Flutter app (uses df_sceen)
15-
version: 0.6.0
15+
version: 0.6.1
1616
repository: https://github.com/devcetra/df_generate_screen
1717
funding:
1818
- https://www.buymeacoffee.com/robmllze
@@ -33,17 +33,18 @@ environment:
3333
dependencies:
3434
df_collection: ^0.8.6
3535
df_config: ^0.5.4
36-
df_gen_core: ^0.5.4
37-
df_generate_dart_indexes: ^0.5.5
38-
df_generate_dart_models_core: ^0.8.11
36+
df_gen_core: ^0.5.7
37+
df_generate_dart_indexes: ^0.5.8
38+
df_generate_dart_models_core: ^0.8.14
3939
df_log: ^0.2.4
4040
df_screen_core: ^0.3.3
4141
df_string: ^0.2.4
4242
df_type: ^0.7.6
43-
44-
analyzer: ^6.8.0
43+
4544
args: ^2.6.0
46-
path: ^1.9.1
45+
46+
path: 1.9.0
47+
analyzer: 6.7.0
4748

4849
## -----------------------------------------------------------------------------
4950

0 commit comments

Comments
 (0)