Merge branch 'master' of https://github.com/jonataslaw/getx into master
Showing
6 changed files
with
101 additions
and
0 deletions
1 | # See https://www.dartlang.org/guides/libraries/private-files | 1 | # See https://www.dartlang.org/guides/libraries/private-files |
2 | 2 | ||
3 | +# See https://www.dartlang.org/guides/libraries/private-files | ||
4 | + | ||
3 | # Files and directories created by pub | 5 | # Files and directories created by pub |
4 | .dart_tool/ | 6 | .dart_tool/ |
5 | .packages | 7 | .packages |
6 | build/ | 8 | build/ |
7 | # If you're building an application, you may want to check-in your pubspec.lock | 9 | # If you're building an application, you may want to check-in your pubspec.lock |
8 | pubspec.lock | 10 | pubspec.lock |
11 | +.pub/ | ||
9 | 12 | ||
10 | # Directory created by dartdoc | 13 | # Directory created by dartdoc |
11 | # If you don't generate documentation locally you can remove this line. | 14 | # If you don't generate documentation locally you can remove this line. |
@@ -25,3 +28,49 @@ example/android/ | @@ -25,3 +28,49 @@ example/android/ | ||
25 | example/ios/ | 28 | example/ios/ |
26 | example/.dart_tool/ | 29 | example/.dart_tool/ |
27 | example/.packages | 30 | example/.packages |
31 | + | ||
32 | +# IntelliJ | ||
33 | +*.iml | ||
34 | +.idea/ | ||
35 | +#.idea/workspace.xml | ||
36 | +#.idea/tasks.xml | ||
37 | +#.idea/gradle.xml | ||
38 | +#.idea/assetWizardSettings.xml | ||
39 | +#.idea/dictionaries | ||
40 | +#.idea/libraries | ||
41 | +#.idea/caches | ||
42 | + | ||
43 | +# User-specific stuff | ||
44 | +.idea/**/workspace.xml | ||
45 | +.idea/**/tasks.xml | ||
46 | +.idea/**/dictionaries | ||
47 | +.idea/**/shelf | ||
48 | + | ||
49 | +# Sensitive or high-churn files | ||
50 | +.idea/**/dataSources/ | ||
51 | +.idea/**/dataSources.ids | ||
52 | +.idea/**/dataSources.local.xml | ||
53 | +.idea/**/sqlDataSources.xml | ||
54 | +.idea/**/dynamic.xml | ||
55 | +.idea/**/uiDesigner.xml | ||
56 | +.idea/**/dbnavigator.xml | ||
57 | + | ||
58 | +# Gradle | ||
59 | +.idea/**/gradle.xml | ||
60 | +.idea/**/libraries | ||
61 | + | ||
62 | +# Android Studio Navigation editor temp files | ||
63 | +.navigation/ | ||
64 | + | ||
65 | +# Android Studio captures folder | ||
66 | +captures/ | ||
67 | + | ||
68 | +# External native build folder generated in Android Studio 2.2 and later | ||
69 | +.externalNativeBuild | ||
70 | + | ||
71 | +### https://raw.github.com/github/gitignore/80a8803b004013d17291196825a327b9e871f009/Global/VisualStudioCode.gitignore | ||
72 | +.vscode/* | ||
73 | +!.vscode/settings.json | ||
74 | +!.vscode/tasks.json | ||
75 | +!.vscode/launch.json | ||
76 | +!.vscode/extensions.json |
.idea/modules.xml
0 → 100644
.idea/vcs.xml
0 → 100644
example/macos/Runner.xcodeproj/xcuserdata/roi.xcuserdatad/xcschemes/xcschememanagement.plist
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
3 | +<plist version="1.0"> | ||
4 | +<dict> | ||
5 | + <key>SchemeUserState</key> | ||
6 | + <dict> | ||
7 | + <key>Flutter Assemble.xcscheme_^#shared#^_</key> | ||
8 | + <dict> | ||
9 | + <key>orderHint</key> | ||
10 | + <integer>1</integer> | ||
11 | + </dict> | ||
12 | + <key>Runner.xcscheme_^#shared#^_</key> | ||
13 | + <dict> | ||
14 | + <key>orderHint</key> | ||
15 | + <integer>0</integer> | ||
16 | + </dict> | ||
17 | + </dict> | ||
18 | +</dict> | ||
19 | +</plist> |
example/macos/Runner.xcworkspace/xcuserdata/roi.xcuserdatad/UserInterfaceState.xcuserstate
0 → 100644
No preview for this file type
1 | import 'package:flutter/widgets.dart'; | 1 | import 'package:flutter/widgets.dart'; |
2 | import 'package:get/src/instance/get_instance.dart'; | 2 | import 'package:get/src/instance/get_instance.dart'; |
3 | 3 | ||
4 | +/// GetView is a great way of quickly access your Controller | ||
5 | +/// without having to call Get.find<AwesomeController>() yourself. | ||
6 | +/// | ||
7 | +/// Sample: | ||
8 | +/// ``` | ||
9 | +/// class AwesomeController extends GetxController { | ||
10 | +/// final String title = 'My Awesome View'; | ||
11 | +/// } | ||
12 | +/// | ||
13 | +/// class AwesomeView extends GetView<AwesomeController> { | ||
14 | +/// @override | ||
15 | +/// Widget build(BuildContext context) { | ||
16 | +/// return Container( | ||
17 | +/// padding: EdgeInsets.all(20), | ||
18 | +/// child: Text( controller.title ), | ||
19 | +/// ); | ||
20 | +/// } | ||
21 | +/// } | ||
22 | +///`` | ||
4 | abstract class GetView<T> extends StatelessWidget { | 23 | abstract class GetView<T> extends StatelessWidget { |
5 | const GetView({Key key}) : super(key: key); | 24 | const GetView({Key key}) : super(key: key); |
6 | T get controller => GetInstance().find<T>(); | 25 | T get controller => GetInstance().find<T>(); |
-
Please register or login to post a comment