File tree Expand file tree Collapse file tree 10 files changed +148
-9
lines changed Expand file tree Collapse file tree 10 files changed +148
-9
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ environment:
23
23
dependencies :
24
24
df_generate_screen :
25
25
path : ../
26
+
26
27
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ void main () {}
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ */
Original file line number Diff line number Diff line change 1
- ``` dart
2
1
// ignore_for_file: unused_import
3
2
4
3
import 'package:flutter/material.dart' ;
@@ -12,13 +11,10 @@ ___PARTS___
12
11
13
12
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
14
13
15
- @GenerateScreenBindings(
16
- ___GENERATE_SCREEN_BINDINGS_ARGS___
17
- )
14
+ @GenerateScreenBindings ()
18
15
final class ___SCREEN_CLASS___ extends ____SCREEN_CLASS___ {
19
16
const ___SCREEN_CLASS___ ({
20
17
super .key,
21
18
super .configuration,
22
19
});
23
- }
24
- ```
20
+ }
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 10
10
11
11
// ignore_for_file: unused_element
12
12
13
- part of '___CLASS_FILE___ ';
13
+ part of 'widget.dart ';
14
14
15
15
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
16
16
Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments