Skip to content

Commit 6c2c06b

Browse files
committed
update
1 parent 583a594 commit 6c2c06b

File tree

10 files changed

+148
-9
lines changed

10 files changed

+148
-9
lines changed

bin/pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ environment:
2323
dependencies:
2424
df_generate_screen:
2525
path: ../
26+
2627
df_log: ^0.2.1
27-
df_string: ^0.2.3
28-
df_gen_core: ^0.3.2
28+
df_string: ^0.2.4
29+
df_gen_core: ^0.3.3

bin/test_project/.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.build/
9+
.buildlog/
10+
.history
11+
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
14+
15+
# IntelliJ related
16+
*.iml
17+
*.ipr
18+
*.iws
19+
.idea/
20+
21+
# The .vscode folder contains launch configuration and tasks you configure in
22+
# VS Code which you may wish to be included in version control, so this line
23+
# is commented out by default.
24+
#.vscode/
25+
26+
# Flutter/Dart/Pub related
27+
**/doc/api/
28+
**/ios/Flutter/.last_build_id
29+
.dart_tool/
30+
.flutter-plugins
31+
.flutter-plugins-dependencies
32+
.pub-cache/
33+
.pub/
34+
/build/
35+
36+
# Symbolication related
37+
app.*.symbols
38+
39+
# Obfuscation related
40+
app.*.map.json
41+
42+
# Android Studio will place build artifacts here
43+
/android/app/debug
44+
/android/app/profile
45+
/android/app/release
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

bin/test_project/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
void main() {}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
part of 'widget.dart';
2+
3+
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
4+
5+
final class ExampleScreenController extends TExampleScreenController {
6+
//
7+
//
8+
//
9+
10+
ExampleScreenController(super.screen, super.state);
11+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
part of 'widget.dart';
2+
3+
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
4+
5+
final class _State extends TAdaptiveExampleScreenState {
6+
//
7+
//
8+
//
9+
10+
@override
11+
Widget body(BuildContext context) {
12+
return const Placeholder();
13+
}
14+
}
15+
16+
/*
17+
// Or use this version, that has no adaptive support:
18+
final class _State extends TExampleScreenState {
19+
@override
20+
Widget build(BuildContext context) {
21+
return const Placeholder();
22+
}
23+
}
24+
*/
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
```dart
21
// ignore_for_file: unused_import
32

43
import 'package:flutter/material.dart';
@@ -12,13 +11,10 @@ ___PARTS___
1211

1312
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
1413

15-
@GenerateScreenBindings(
16-
___GENERATE_SCREEN_BINDINGS_ARGS___
17-
)
14+
@GenerateScreenBindings()
1815
final class ___SCREEN_CLASS___ extends ____SCREEN_CLASS___ {
1916
const ___SCREEN_CLASS___({
2017
super.key,
2118
super.configuration,
2219
});
23-
}
24-
```
20+
}

bin/test_project/pubspec.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: test_project
2+
publish_to: "none"
3+
environment:
4+
sdk: ">=3.5.0 <4.0.0"
5+
dependencies:
6+
flutter:
7+
sdk: flutter
8+
df_screen: ^0.6.7
9+
dev_dependencies:
10+
flutter_lints: ^4.0.0

templates/v1/_bindings.dart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
// ignore_for_file: unused_element
1212
13-
part of '___CLASS_FILE___';
13+
part of 'widget.dart';
1414
1515
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
1616

templates/v1/widget.dart.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```dart
2+
// ignore_for_file: unused_import
3+
4+
import 'package:flutter/material.dart';
5+
import 'package:df_screen/df_screen.dart';
6+
7+
part '_bindings.g.dart';
8+
part '_controller.dart';
9+
part '_state.dart';
10+
11+
12+
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
13+
14+
@GenerateScreenBindings(
15+
___GENERATE_SCREEN_BINDINGS_ARGS___
16+
)
17+
final class ____WIDGET_NAME___ extends Screen {
18+
const ____WIDGET_NAME___({
19+
super.key,
20+
super.configuration,
21+
});
22+
}
23+
```

0 commit comments

Comments
 (0)