Showing
1 changed file
with
910 additions
and
0 deletions
README.ko-kr.md
0 → 100644
1 | + | ||
2 | + | ||
3 | +_Languages: [English](README.md), [Chinese](README.zh-cn.md), [Brazilian Portuguese](README.pt-br.md), [Spanish](README-es.md), [Russian](README.ru.md), [Polish](README.pl.md), 한국어(이파일)._ | ||
4 | + | ||
5 | +[](https://pub.dev/packages/get) | ||
6 | +[](https://pub.dev/packages/get/score) | ||
7 | + | ||
8 | +[](https://pub.dev/packages/effective_dart) | ||
9 | +[](https://discord.com/invite/9Hpt99N) | ||
10 | +[](https://communityinviter.com/apps/getxworkspace/getx) | ||
11 | +[](https://t.me/joinchat/PhdbJRmsZNpAqSLJL6bH7g) | ||
12 | +<a href="https://github.com/Solido/awesome-flutter"> | ||
13 | +<img alt="Awesome Flutter" src="https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square" /> | ||
14 | +</a> | ||
15 | +<a href="https://www.buymeacoffee.com/jonataslaw" target="_blank"><img src="https://i.imgur.com/aV6DDA7.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important; box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" > </a> | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | +- [Get에 대하여](#Get에-대하여) | ||
20 | +- [설치](#설치) | ||
21 | +- [GetX를 사용한 Counter 앱](#GetX를-사용한-Counter-앱) | ||
22 | +- [세가지 주요점](#세가지-주요점) | ||
23 | + - [상태 관리](#상태-관리) | ||
24 | + - [반응형 상태 관리자](#반응형-상태-관리자) | ||
25 | + - [상태 관리에 대한 자세한 내용](#상태-관리에-대한-자세한-내용) | ||
26 | + - [라우트 관리](#라우트-관리) | ||
27 | + - [라우트 관리에 대한 자세한 내용](#라우트-관리에-대한-자세한-내용) | ||
28 | + - [종속성 관리](#종속성-관리) | ||
29 | + - [종속성 관리에 대한 자세한 내용](#종속성-관리에-대한-자세한-내용) | ||
30 | +- [기능들](#기능들) | ||
31 | + - [국제화](#국제화) | ||
32 | + - [번역](#번역) | ||
33 | + - [번역 사용법](#번역-사용법) | ||
34 | + - [지역화](#지역화) | ||
35 | + - [지역 변경](#지역-변경) | ||
36 | + - [시스템 지역](#시스템-지역) | ||
37 | + - [테마 변경](#테마-변경) | ||
38 | + - [기타 고급 API](#기타-고급-API) | ||
39 | + - [선택적 전역 설정과 수동 구성](#선택적-전역-설정과-수동-구성) | ||
40 | + - [지역 State Widgets](#지역-State-Widgets) | ||
41 | + - [ValueBuilder](#valuebuilder) | ||
42 | + - [ObxValue](#obxvalue) | ||
43 | + - [유용한 팁](#유용한-팁) | ||
44 | + - [GetView](#getview) | ||
45 | + - [GetWidget](#getwidget) | ||
46 | + - [GetxService](#getxservice) | ||
47 | +- [2.0의 주요 변경점](#2.0의-주요-변경점) | ||
48 | +- [왜-Getx인가?](#왜-Getx인가?) | ||
49 | +- [커뮤니티](#커뮤니티) | ||
50 | + - [커뮤니티 채널](#커뮤니티-채널) | ||
51 | + - [기여하는 방법](#기여하는-방법) | ||
52 | + - [기사 및 비디오](#기사-및-비디오) | ||
53 | + | ||
54 | +# Get에 대하여 | ||
55 | + | ||
56 | +- GetX는 Flutter를 위한 매우 가볍고 강력한 솔루션입니다. 고성능 상태 관리, 지능형 종속성 주입 및 빠르고 실용적인 라우트 관리가 결합되어 있습니다. | ||
57 | + | ||
58 | +- GetX는 라이브러리의 모든 사항에 대해서 **생산성, 성능, 조직화**의 3 가지 기본 원칙을 가지고 있습니다. | ||
59 | + | ||
60 | + - **성능:** GetX는 성능과 최소한의 리소스 소비에 중점을 둡니다. GetX는 Streams나 ChangeNotifier를 사용하지 않습니다. | ||
61 | + | ||
62 | + - **생산성:** GetX는 쉽고 친숙한 구문을 사용합니다. 원하시는 것보다 Getx에는 항상 더 쉬운 방법이 있습니다. 개발 시간을 아끼고 애플리케이션을 최대 성능으로 제공할 수 있습니다. | ||
63 | + 일반적으로 개발자는 메모리에서 컨트롤러들을 제거하는 데 관심을 가져야합니다. GetX에서는 리소스가 기본적으로 사용되지 않으면 메모리에서 제거되므로 필요하지 않습니다. 만약 메모리에 유지하려면 종속성에서 "permanent : true"를 명시적으로 선언해야합니다. 이렇게하면 시간을 절약 할 수있을뿐만 아니라 불필요한 메모리 종속성이 발생할 위험이 줄어 듭니다. 종속성은 기본적으로 lazy로 로드됩니다. | ||
64 | + | ||
65 | + - **조직화:** GetX는 화면, 프레젠테이션 로직, 비즈니스 로직, 종속성 주입 및 네비게이션을 완전히 분리 할 수 있습니다. 라우트간 전환을 하는데에 컨텍스트가 필요하지 않아 위젯 트리(시각객체)에 독립적입니다. inheritedWidget을 통해 컨트롤러/블록에 접근하는 데 컨텍스트가 필요하지 않아 시각화 계층에서 프레젠테이션 로직과 비즈니스 로직을 완전히 분리됩니다. 이 GetX는 자체 종속성 주입 기능을 사용하여 DI를 뷰에서 완전히 분리하기 때문에 다중 Provider를 통해 위젯 트리에서 컨트롤러/모델/블록으로 주입 할 필요가 없습니다. | ||
66 | + GetX를 사용하면 기본적으로 클린 코드를 가지게 되어 애플리케이션의 각 기능을 쉽게 찾을 수있습니다. 이것은 유지 보수를 용이하게 하며 모듈의 공유가 가능하고 Flutter에서는 생각할 수 없었던 것들도 전부 가능합니다. | ||
67 | + BLoC은 Flutter에서 코드를 구성하기 위한 시작점으로 비즈니스 로직과 시각객체를 분리합니다. Getx는 비즈니스 로직 뿐만 아니라 프레젠테이션 로직을 분리하는 자연스러운 진화입니다. 추가로 종속성 주입과 라우트 또한 분리되고 데이터 계층이 모두로부터 분리됩니다. Hello World를 구현하는 것보다 더 쉽게 모든 것이 어디 있는지 알수 있습니다. | ||
68 | + Flutter SDK와 함께 GetX를 사용하면 가장 쉽고 실용적이며 확장 가능한 고성능 어플리케이션을 만들수 있습니다. 초보자에게는 쉬우며 전문가에게는 정확하고 완벽하게 동작하는 대규모 생태계가 함께합니다. 안전하고 안정적이며 업데이트되고 기본 Flutter SDK에 없는 광범위한 API 빌드를 제공합니다. | ||
69 | + | ||
70 | +- GetX는 비대하지 않습니다. 아무 걱정없이 프로그래밍을 시작할 수 있는 다양한 기능이 있지만 각 기능은 별도의 컨테이너에 있으며 사용한 후에만 시작됩니다. 만약 상태 관리만 사용하면 오직 상태 관리만 컴파일 됩니다. 라우트만 사용하는 경우 상태 관리는 컴파일되지 않습니다. | ||
71 | + | ||
72 | +- GetX는 거대한 생태계, 대규모 커뮤니티, 수많은 공동 작업자를 보유하고 있으며 Flutter가 존재하는 한 유지됩니다. GetX도 Android, iOS, 웹, Mac, Linux, Windows 및 서버에서 동일한 코드로 실행할 수 있습니다. | ||
73 | +**[Get Server](https://github.com/jonataslaw/get_server)를 사용한 백엔드에는 프런트엔드에서 만든 코드를 완전히 재사용 할 수 있습니다.** | ||
74 | + | ||
75 | +**추가로 [Get CLI](https://github.com/jonataslaw/get_cli)를 프런트엔드와 서버 양쪽에서 사용하면 전체 개발 프로세스를 자동화 할 수 있습니다.** | ||
76 | + | ||
77 | +**추가로 생산성 향상을 위해 [VSCode 확장](https://marketplace.visualstudio.com/items?itemName=get-snippets.get-snippets)과 [Android Studio/Intellij 확장](https://plugins.jetbrains.com/plugin/14975-getx-snippets)이 있습니다.** | ||
78 | + | ||
79 | +# 설치 | ||
80 | + | ||
81 | +pubspec.yaml 파일에 Get 추가: | ||
82 | + | ||
83 | +```yaml | ||
84 | +dependencies: | ||
85 | + get: | ||
86 | +``` | ||
87 | + | ||
88 | +사용할 파일에 Import get: | ||
89 | + | ||
90 | +```dart | ||
91 | +import 'package:get/get.dart'; | ||
92 | +``` | ||
93 | + | ||
94 | +# GetX를 사용한 Counter 앱 | ||
95 | + | ||
96 | +Flutter의 새 프로젝트에서 기본적으로 생성 되는 "counter" 프로젝트는 100줄이 넘습니다 (코멘트 포함). Get의 힘을 보여주기 위해 클릭 할 때마다 상태를 변경하고, 페이지 사이를 전환하고, 화면 사이의 상태를 공유하는 "counter"를 만드는 방법을 주석이 포함된 26줄의 코드로 보여줄 것입니다. | ||
97 | + | ||
98 | +- 1 단계: | ||
99 | + MaterialApp 에 "Get"을 추가하여 GetMaterialApp 으로 변경합니다. | ||
100 | + | ||
101 | +```dart | ||
102 | +void main() => runApp(GetMaterialApp(home: Home())); | ||
103 | +``` | ||
104 | + | ||
105 | +- 주석: 이는 Flutter의 MaterialApp을 변경하지 않으며 GetMaterialApp 또한 수정 된 MaterialApp이 아니고, 기본 MaterialApp을 자식으로 갖는 사전 구성된 위젯 일뿐입니다. 수동으로 구성 할 수 있지만 반드시 필요한 것은 아닙니다. GetMaterialApp은 라우트를 생성하고 추가하며, 번역을 추가하고, 라우트 탐색에 필요한 모든 것을 추가합니다. 만약 상태 관리 또는 종속성 관리에만 Get을 사용하는 경우 GetMaterialApp을 사용할 필요가 없습니다. GetMaterialApp은 라우트, 스택바, 국제화, bottomSheets, 다이얼로그 및 컨텍스트 부재와 라우트에 연관된 상위 api들에 필요합니다. | ||
106 | + | ||
107 | +- 주석²: 이 단계는 라우트 관리 (`Get.to ()`,`Get.back ()` 등)를 사용하려는 경우에만 필요합니다. 사용하지 않을 경우 1 단계를 수행 할 필요가 없습니다. | ||
108 | + | ||
109 | +- 2 단계: | ||
110 | + 비즈니스 로직 클래스를 만들고 모든 변수, 함수, 컨트롤러를 포함하십시오. | ||
111 | + ".obs"를 이용하면 간단히 모든 변수를 observable로 만들수 있습니다. | ||
112 | + | ||
113 | +```dart | ||
114 | +class Controller extends GetxController{ | ||
115 | + var count = 0.obs; | ||
116 | + increment() => count++; | ||
117 | +} | ||
118 | +``` | ||
119 | + | ||
120 | +- 3 단계: | ||
121 | + StatelessWidget를 이용해 View를 만들어 RAM을 아끼고 StatefulWidget은 더 이상 사용하지 않아도 됩니다. | ||
122 | + | ||
123 | +```dart | ||
124 | +class Home extends StatelessWidget { | ||
125 | + | ||
126 | + // Get.put()을 사용하여 클래스를 인스턴스화하여 모든 "child'에서 사용가능하게 합니다. | ||
127 | + final Controller c = Get.put(Controller()); | ||
128 | + | ||
129 | + @override | ||
130 | + Widget build(context) => Scaffold( | ||
131 | + // count가 변경 될 때마다 Obx(()=> 를 사용하여 Text()에 업데이트합니다. | ||
132 | + appBar: AppBar(title: Obx(() => Text("Clicks: ${c.count}"))), | ||
133 | + | ||
134 | + // 8줄의 Navigator.push를 간단한 Get.to()로 변경합니다. context는 필요없습니다. | ||
135 | + body: Center(child: RaisedButton( | ||
136 | + child: Text("Go to Other"), onPressed: () => Get.to(Other()))), | ||
137 | + floatingActionButton: | ||
138 | + FloatingActionButton(child: Icon(Icons.add), onPressed: c.increment)); | ||
139 | +} | ||
140 | + | ||
141 | +class Other extends StatelessWidget { | ||
142 | + // 다른 페이지에서 사용되는 컨트롤러를 Get으로 찾아서 redirect 할 수 있습니다. | ||
143 | + final Controller c = Get.find(); | ||
144 | + | ||
145 | + @override | ||
146 | + Widget build(context){ | ||
147 | + // 업데이트된 count 변수에 연결 | ||
148 | + return Scaffold(body: Center(child: Text("${c.count}"))); | ||
149 | + } | ||
150 | +} | ||
151 | +``` | ||
152 | + | ||
153 | +결론: | ||
154 | + | ||
155 | + | ||
156 | + | ||
157 | +이것은 간단한 프로젝트 이지만 Get이 얼마나 강력한지 명확히 보여줍니다. 프로젝트가 성장하면 차이점이 더 커질 것 입니다. | ||
158 | + | ||
159 | +Get은 팀단위 업무에 맞춰 디자인되었지만 개별 개발자의 작업도 단순화합니다. | ||
160 | + | ||
161 | +마감일을 개선하고 성능의 손실 없이 재시간에 제공하십시오. Get은 모두를 위한 것은 아니지만 위의 설명에 해당사항이 있으면 당신을 위한 것입니다! | ||
162 | + | ||
163 | +# 세가지 주요점 | ||
164 | + | ||
165 | +## 상태 관리 | ||
166 | + | ||
167 | +Get은 두가지 상태 관리자가 있습니다: 단순 상태관리자(GetBuilder라고 함)와 반응형 상태관리자(GetX/Obx) | ||
168 | + | ||
169 | +### 반응형 상태 관리자 | ||
170 | + | ||
171 | +반응형 프로그래밍은 복잡하다고 알려져있기 때문에 많은 사람들에게 소외될 수 있습니다. GetX가 매우 단순하게 반응형 프로그래밍을 바꿉니다: | ||
172 | + | ||
173 | +- StreamControllers를 만들 필요가 없습니다. | ||
174 | +- 각 변수에 대해 StreamBuilder를 만들 필요가 없습니다. | ||
175 | +- 각각의 상태(state)를 위한 클래스를 만들 필요가 없습니다. | ||
176 | +- 초기값을 위한 get이 필요하지 않습니다. | ||
177 | +- 코드 생성기를 사용할 필요가 없스빈다. | ||
178 | + | ||
179 | +Get의 반응형 프로그램은 setState를 사용하는 것 만큼 쉽습니다. | ||
180 | + | ||
181 | +매번 변경되기를 원하고 모든 위젯에서 자동적으로 반영되는 변수가 있다고 가정해봅시다. | ||
182 | + | ||
183 | +여기 name 변수가 있습니다: | ||
184 | + | ||
185 | +```dart | ||
186 | +var name = 'Jonatas Borges'; | ||
187 | +``` | ||
188 | + | ||
189 | +".obs"만 끝에 추가하여 observable로 만듭니다: | ||
190 | + | ||
191 | +```dart | ||
192 | +var name = 'Jonatas Borges'.obs; | ||
193 | +``` | ||
194 | + | ||
195 | +아래와 같이 간단히 보여주고 싶은 UI에 추가하면 값이 변경될때마다 화면에 업데이트 됩니다: | ||
196 | + | ||
197 | +```dart | ||
198 | +Obx(() => Text("${controller.name}")); | ||
199 | +``` | ||
200 | + | ||
201 | +이게 다 입니다. _정말_ 간단하죠. | ||
202 | + | ||
203 | +### 상태 관리에 대한 자세한 내용 | ||
204 | + | ||
205 | +**상태 관리에 대한 자세한 설명은 [여기](./documentation/en_US/state_management.md)를 보십시오. 여기에서 더 많은 예제와 단순 상태 관리자와 반응형 상태 관리자의 차이점을 볼 수 있습니다.** | ||
206 | + | ||
207 | +You will get a good idea of GetX power. | ||
208 | + | ||
209 | +## 라우트 관리 | ||
210 | + | ||
211 | +If you are going to use routes/snackbars/dialogs/bottomsheets without context, GetX is excellent for you too, just see it: | ||
212 | + | ||
213 | +Add "Get" before your MaterialApp, turning it into GetMaterialApp | ||
214 | + | ||
215 | +```dart | ||
216 | +GetMaterialApp( // Before: MaterialApp( | ||
217 | + home: MyHome(), | ||
218 | +) | ||
219 | +``` | ||
220 | + | ||
221 | +Navigate to new screen: | ||
222 | + | ||
223 | +```dart | ||
224 | + | ||
225 | +Get.to(NextScreen()); | ||
226 | +``` | ||
227 | + | ||
228 | +Navigate to new screen with name. See more details on named routes [here](./documentation/en_US/route_management.md#navigation-with-named-routes) | ||
229 | + | ||
230 | +```dart | ||
231 | + | ||
232 | +Get.toNamed('/details'); | ||
233 | +``` | ||
234 | + | ||
235 | +To close snackbars, dialogs, bottomsheets, or anything you would normally close with Navigator.pop(context); | ||
236 | + | ||
237 | +```dart | ||
238 | +Get.back(); | ||
239 | +``` | ||
240 | + | ||
241 | +To go to the next screen and no option to go back to the previous screen (for use in SplashScreens, login screens and etc.) | ||
242 | + | ||
243 | +```dart | ||
244 | +Get.off(NextScreen()); | ||
245 | +``` | ||
246 | + | ||
247 | +To go to the next screen and cancel all previous routes (useful in shopping carts, polls, and tests) | ||
248 | + | ||
249 | +```dart | ||
250 | +Get.offAll(NextScreen()); | ||
251 | +``` | ||
252 | + | ||
253 | +Noticed that you didn't had to use context to do any of these things? That's one of the biggest advantages of using Get route management. With this, you can execute all these methods from within your controller class, without worries. | ||
254 | + | ||
255 | +### 라우트 관리에 대한 자세한 내용 | ||
256 | + | ||
257 | +**Get work with named routes and also offer a lower level control over your routes! There is a in-depth documentation [here](./documentation/en_US/route_management.md)** | ||
258 | + | ||
259 | +## 종속성 관리 | ||
260 | + | ||
261 | +Get has a simple and powerful dependency manager that allows you to retrieve the same class as your Bloc or Controller with just 1 lines of code, no Provider context, no inheritedWidget: | ||
262 | + | ||
263 | +```dart | ||
264 | +Controller controller = Get.put(Controller()); // Rather Controller controller = Controller(); | ||
265 | +``` | ||
266 | + | ||
267 | +- Note: If you are using Get's State Manager, pay more attention to the bindings api, which will make easier to connect your view to your controller. | ||
268 | + | ||
269 | +Instead of instantiating your class within the class you are using, you are instantiating it within the Get instance, which will make it available throughout your App. | ||
270 | +So you can use your controller (or class Bloc) normally | ||
271 | + | ||
272 | +**Tip:** Get dependency management is decloupled from other parts of the package, so if for example your app is already using a state manager (any one, it doesn't matter), you don't need to rewrite it all, you can use this dependency injection with no problems at all | ||
273 | + | ||
274 | +```dart | ||
275 | +controller.fetchApi(); | ||
276 | +``` | ||
277 | + | ||
278 | +Imagine that you have navigated through numerous routes, and you need a data that was left behind in your controller, you would need a state manager combined with the Provider or Get_it, correct? Not with Get. You just need to ask Get to "find" for your controller, you don't need any additional dependencies: | ||
279 | + | ||
280 | +```dart | ||
281 | +Controller controller = Get.find(); | ||
282 | +//Yes, it looks like Magic, Get will find your controller, and will deliver it to you. You can have 1 million controllers instantiated, Get will always give you the right controller. | ||
283 | +``` | ||
284 | + | ||
285 | +And then you will be able to recover your controller data that was obtained back there: | ||
286 | + | ||
287 | +```dart | ||
288 | +Text(controller.textFromApi); | ||
289 | +``` | ||
290 | + | ||
291 | +### 종속성 관리에 대한 자세한 내용 | ||
292 | + | ||
293 | +**See a more in-depth explanation of dependency management [here](./documentation/en_US/dependency_management.md)** | ||
294 | + | ||
295 | +# 기능들 | ||
296 | + | ||
297 | +## 국제화 | ||
298 | + | ||
299 | +### 번역 | ||
300 | + | ||
301 | +Translations are kept as a simple key-value dictionary map. | ||
302 | +To add custom translations, create a class and extend `Translations`. | ||
303 | + | ||
304 | +```dart | ||
305 | +import 'package:get/get.dart'; | ||
306 | + | ||
307 | +class Messages extends Translations { | ||
308 | + @override | ||
309 | + Map<String, Map<String, String>> get keys => { | ||
310 | + 'en_US': { | ||
311 | + 'hello': 'Hello World', | ||
312 | + }, | ||
313 | + 'de_DE': { | ||
314 | + 'hello': 'Hallo Welt', | ||
315 | + } | ||
316 | + }; | ||
317 | +} | ||
318 | +``` | ||
319 | + | ||
320 | +#### 번역 사용법 | ||
321 | + | ||
322 | +Just append `.tr` to the specified key and it will be translated, using the current value of `Get.locale` and `Get.fallbackLocale`. | ||
323 | + | ||
324 | +```dart | ||
325 | +Text('title'.tr); | ||
326 | +``` | ||
327 | + | ||
328 | +### 지역화 | ||
329 | + | ||
330 | +Pass parameters to `GetMaterialApp` to define the locale and translations. | ||
331 | + | ||
332 | +```dart | ||
333 | +return GetMaterialApp( | ||
334 | + translations: Messages(), // your translations | ||
335 | + locale: Locale('en', 'US'), // translations will be displayed in that locale | ||
336 | + fallbackLocale: Locale('en', 'UK'), // specify the fallback locale in case an invalid locale is selected. | ||
337 | +); | ||
338 | +``` | ||
339 | + | ||
340 | +#### 지역 변경 | ||
341 | + | ||
342 | +Call `Get.updateLocale(locale)` to update the locale. Translations then automatically use the new locale. | ||
343 | + | ||
344 | +```dart | ||
345 | +var locale = Locale('en', 'US'); | ||
346 | +Get.updateLocale(locale); | ||
347 | +``` | ||
348 | + | ||
349 | +#### 시스템 지역 | ||
350 | + | ||
351 | +To read the system locale, you could use `Get.deviceLocale`. | ||
352 | + | ||
353 | +```dart | ||
354 | +return GetMaterialApp( | ||
355 | + locale: Get.deviceLocale, | ||
356 | +); | ||
357 | +``` | ||
358 | + | ||
359 | +## 테마 변경 | ||
360 | + | ||
361 | +Please do not use any higher level widget than `GetMaterialApp` in order to update it. This can trigger duplicate keys. A lot of people are used to the prehistoric approach of creating a "ThemeProvider" widget just to change the theme of your app, and this is definitely NOT necessary with **GetX™**. | ||
362 | + | ||
363 | +You can create your custom theme and simply add it within `Get.changeTheme` without any boilerplate for that: | ||
364 | + | ||
365 | +```dart | ||
366 | +Get.changeTheme(ThemeData.light()); | ||
367 | +``` | ||
368 | + | ||
369 | +If you want to create something like a button that changes the Theme in `onTap`, you can combine two **GetX™** APIs for that: | ||
370 | + | ||
371 | +- The api that checks if the dark `Theme` is being used. | ||
372 | +- And the `Theme` Change API, you can just put this within an `onPressed`: | ||
373 | + | ||
374 | +```dart | ||
375 | +Get.changeTheme(Get.isDarkMode? ThemeData.light(): ThemeData.dark()); | ||
376 | +``` | ||
377 | + | ||
378 | +When `.darkmode` is activated, it will switch to the _light theme_, and when the _light theme_ becomes active, it will change to _dark theme_. | ||
379 | + | ||
380 | +## 기타 고급 API | ||
381 | + | ||
382 | +```dart | ||
383 | +// give the current args from currentScreen | ||
384 | +Get.arguments | ||
385 | + | ||
386 | +// give name of previous route | ||
387 | +Get.previousRoute | ||
388 | + | ||
389 | +// give the raw route to access for example, rawRoute.isFirst() | ||
390 | +Get.rawRoute | ||
391 | + | ||
392 | +// give access to Rounting API from GetObserver | ||
393 | +Get.routing | ||
394 | + | ||
395 | +// check if snackbar is open | ||
396 | +Get.isSnackbarOpen | ||
397 | + | ||
398 | +// check if dialog is open | ||
399 | +Get.isDialogOpen | ||
400 | + | ||
401 | +// check if bottomsheet is open | ||
402 | +Get.isBottomSheetOpen | ||
403 | + | ||
404 | +// remove one route. | ||
405 | +Get.removeRoute() | ||
406 | + | ||
407 | +// back repeatedly until the predicate returns true. | ||
408 | +Get.until() | ||
409 | + | ||
410 | +// go to next route and remove all the previous routes until the predicate returns true. | ||
411 | +Get.offUntil() | ||
412 | + | ||
413 | +// go to next named route and remove all the previous routes until the predicate returns true. | ||
414 | +Get.offNamedUntil() | ||
415 | + | ||
416 | +//Check in what platform the app is running | ||
417 | +GetPlatform.isAndroid | ||
418 | +GetPlatform.isIOS | ||
419 | +GetPlatform.isMacOS | ||
420 | +GetPlatform.isWindows | ||
421 | +GetPlatform.isLinux | ||
422 | +GetPlatform.isFuchsia | ||
423 | + | ||
424 | +//Check the device type | ||
425 | +GetPlatform.isMobile | ||
426 | +GetPlatform.isDesktop | ||
427 | +//All platforms are supported independently in web! | ||
428 | +//You can tell if you are running inside a browser | ||
429 | +//on Windows, iOS, OSX, Android, etc. | ||
430 | +GetPlatform.isWeb | ||
431 | + | ||
432 | + | ||
433 | +// Equivalent to : MediaQuery.of(context).size.height, | ||
434 | +// but immutable. | ||
435 | +Get.height | ||
436 | +Get.width | ||
437 | + | ||
438 | +// Gives the current context of the Navigator. | ||
439 | +Get.context | ||
440 | + | ||
441 | +// Gives the context of the snackbar/dialog/bottomsheet in the foreground, anywhere in your code. | ||
442 | +Get.contextOverlay | ||
443 | + | ||
444 | +// Note: the following methods are extensions on context. Since you | ||
445 | +// have access to context in any place of your UI, you can use it anywhere in the UI code | ||
446 | + | ||
447 | +// If you need a changeable height/width (like Desktop or browser windows that can be scaled) you will need to use context. | ||
448 | +context.width | ||
449 | +context.height | ||
450 | + | ||
451 | +// Gives you the power to define half the screen, a third of it and so on. | ||
452 | +// Useful for responsive applications. | ||
453 | +// param dividedBy (double) optional - default: 1 | ||
454 | +// param reducedBy (double) optional - default: 0 | ||
455 | +context.heightTransformer() | ||
456 | +context.widthTransformer() | ||
457 | + | ||
458 | +/// Similar to MediaQuery.of(context).size | ||
459 | +context.mediaQuerySize() | ||
460 | + | ||
461 | +/// Similar to MediaQuery.of(context).padding | ||
462 | +context.mediaQueryPadding() | ||
463 | + | ||
464 | +/// Similar to MediaQuery.of(context).viewPadding | ||
465 | +context.mediaQueryViewPadding() | ||
466 | + | ||
467 | +/// Similar to MediaQuery.of(context).viewInsets; | ||
468 | +context.mediaQueryViewInsets() | ||
469 | + | ||
470 | +/// Similar to MediaQuery.of(context).orientation; | ||
471 | +context.orientation() | ||
472 | + | ||
473 | +/// Check if device is on landscape mode | ||
474 | +context.isLandscape() | ||
475 | + | ||
476 | +/// Check if device is on portrait mode | ||
477 | +context.isPortrait() | ||
478 | + | ||
479 | +/// Similar to MediaQuery.of(context).devicePixelRatio; | ||
480 | +context.devicePixelRatio() | ||
481 | + | ||
482 | +/// Similar to MediaQuery.of(context).textScaleFactor; | ||
483 | +context.textScaleFactor() | ||
484 | + | ||
485 | +/// Get the shortestSide from screen | ||
486 | +context.mediaQueryShortestSide() | ||
487 | + | ||
488 | +/// True if width be larger than 800 | ||
489 | +context.showNavbar() | ||
490 | + | ||
491 | +/// True if the shortestSide is smaller than 600p | ||
492 | +context.isPhone() | ||
493 | + | ||
494 | +/// True if the shortestSide is largest than 600p | ||
495 | +context.isSmallTablet() | ||
496 | + | ||
497 | +/// True if the shortestSide is largest than 720p | ||
498 | +context.isLargeTablet() | ||
499 | + | ||
500 | +/// True if the current device is Tablet | ||
501 | +context.isTablet() | ||
502 | + | ||
503 | +/// Returns a value<T> according to the screen size | ||
504 | +/// can give value for: | ||
505 | +/// watch: if the shortestSide is smaller than 300 | ||
506 | +/// mobile: if the shortestSide is smaller than 600 | ||
507 | +/// tablet: if the shortestSide is smaller than 1200 | ||
508 | +/// desktop: if width is largest than 1200 | ||
509 | +context.responsiveValue<T>() | ||
510 | +``` | ||
511 | + | ||
512 | +### 선택적 전역 설정과 수동 구성 | ||
513 | + | ||
514 | +GetMaterialApp configures everything for you, but if you want to configure Get manually. | ||
515 | + | ||
516 | +```dart | ||
517 | +MaterialApp( | ||
518 | + navigatorKey: Get.key, | ||
519 | + navigatorObservers: [GetObserver()], | ||
520 | +); | ||
521 | +``` | ||
522 | + | ||
523 | +You will also be able to use your own Middleware within `GetObserver`, this will not influence anything. | ||
524 | + | ||
525 | +```dart | ||
526 | +MaterialApp( | ||
527 | + navigatorKey: Get.key, | ||
528 | + navigatorObservers: [ | ||
529 | + GetObserver(MiddleWare.observer) // Here | ||
530 | + ], | ||
531 | +); | ||
532 | +``` | ||
533 | + | ||
534 | +You can create _Global Settings_ for `Get`. Just add `Get.config` to your code before pushing any route. | ||
535 | +Or do it directly in your `GetMaterialApp` | ||
536 | + | ||
537 | +```dart | ||
538 | +GetMaterialApp( | ||
539 | + enableLog: true, | ||
540 | + defaultTransition: Transition.fade, | ||
541 | + opaqueRoute: Get.isOpaqueRouteDefault, | ||
542 | + popGesture: Get.isPopGestureEnable, | ||
543 | + transitionDuration: Get.defaultDurationTransition, | ||
544 | + defaultGlobalState: Get.defaultGlobalState, | ||
545 | +); | ||
546 | + | ||
547 | +Get.config( | ||
548 | + enableLog = true, | ||
549 | + defaultPopGesture = true, | ||
550 | + defaultTransition = Transitions.cupertino | ||
551 | +) | ||
552 | +``` | ||
553 | + | ||
554 | +You can optionally redirect all the logging messages from `Get`. | ||
555 | +If you want to use your own, favourite logging package, | ||
556 | +and want to capture the logs there: | ||
557 | + | ||
558 | +```dart | ||
559 | +GetMaterialApp( | ||
560 | + enableLog: true, | ||
561 | + logWriterCallback: localLogWriter, | ||
562 | +); | ||
563 | + | ||
564 | +void localLogWriter(String text, {bool isError = false}) { | ||
565 | + // pass the message to your favourite logging package here | ||
566 | + // please note that even if enableLog: false log messages will be pushed in this callback | ||
567 | + // you get check the flag if you want through GetConfig.isLogEnable | ||
568 | +} | ||
569 | + | ||
570 | +``` | ||
571 | + | ||
572 | +### 지역 State Widgets | ||
573 | + | ||
574 | +These Widgets allows you to manage a single value, and keep the state ephemeral and locally. | ||
575 | +We have flavours for Reactive and Simple. | ||
576 | +For instance, you might use them to toggle obscureText in a `TextField`, maybe create a custom | ||
577 | +Expandable Panel, or maybe modify the current index in `BottomNavigationBar` while changing the content | ||
578 | +of the body in a `Scaffold`. | ||
579 | + | ||
580 | +#### ValueBuilder | ||
581 | + | ||
582 | +A simplification of `StatefulWidget` that works with a `.setState` callback that takes the updated value. | ||
583 | + | ||
584 | +```dart | ||
585 | +ValueBuilder<bool>( | ||
586 | + initialValue: false, | ||
587 | + builder: (value, updateFn) => Switch( | ||
588 | + value: value, | ||
589 | + onChanged: updateFn, // same signature! you could use ( newValue ) => updateFn( newValue ) | ||
590 | + ), | ||
591 | + // if you need to call something outside the builder method. | ||
592 | + onUpdate: (value) => print("Value updated: $value"), | ||
593 | + onDispose: () => print("Widget unmounted"), | ||
594 | +), | ||
595 | +``` | ||
596 | + | ||
597 | +#### ObxValue | ||
598 | + | ||
599 | +Similar to [`ValueBuilder`](#valuebuilder), but this is the Reactive version, you pass a Rx instance (remember the magical .obs?) and | ||
600 | +updates automatically... isn't it awesome? | ||
601 | + | ||
602 | +```dart | ||
603 | +ObxValue((data) => Switch( | ||
604 | + value: data.value, | ||
605 | + onChanged: data, // Rx has a _callable_ function! You could use (flag) => data.value = flag, | ||
606 | + ), | ||
607 | + false.obs, | ||
608 | +), | ||
609 | +``` | ||
610 | + | ||
611 | +## 유용한 팁 | ||
612 | + | ||
613 | +`.obs`ervables (also known as _Rx_ Types) have a wide variety of internal methods and operators. | ||
614 | + | ||
615 | +> Is very common to _believe_ that a property with `.obs` **IS** the actual value... but make no mistake! | ||
616 | +> We avoid the Type declaration of the variable, because Dart's compiler is smart enough, and the code | ||
617 | +> looks cleaner, but: | ||
618 | + | ||
619 | +```dart | ||
620 | +var message = 'Hello world'.obs; | ||
621 | +print( 'Message "$message" has Type ${message.runtimeType}'); | ||
622 | +``` | ||
623 | + | ||
624 | +Even if `message` _prints_ the actual String value, the Type is **RxString**! | ||
625 | + | ||
626 | +So, you can't do `message.substring( 0, 4 )`. | ||
627 | +You have to access the real `value` inside the _observable_: | ||
628 | +The most "used way" is `.value`, but, did you know that you can also use... | ||
629 | + | ||
630 | +```dart | ||
631 | +final name = 'GetX'.obs; | ||
632 | +// only "updates" the stream, if the value is different from the current one. | ||
633 | +name.value = 'Hey'; | ||
634 | + | ||
635 | +// All Rx properties are "callable" and returns the new value. | ||
636 | +// but this approach does not accepts `null`, the UI will not rebuild. | ||
637 | +name('Hello'); | ||
638 | + | ||
639 | +// is like a getter, prints 'Hello'. | ||
640 | +name() ; | ||
641 | + | ||
642 | +/// numbers: | ||
643 | + | ||
644 | +final count = 0.obs; | ||
645 | + | ||
646 | +// You can use all non mutable operations from num primitives! | ||
647 | +count + 1; | ||
648 | + | ||
649 | +// Watch out! this is only valid if `count` is not final, but var | ||
650 | +count += 1; | ||
651 | + | ||
652 | +// You can also compare against values: | ||
653 | +count > 2; | ||
654 | + | ||
655 | +/// booleans: | ||
656 | + | ||
657 | +final flag = false.obs; | ||
658 | + | ||
659 | +// switches the value between true/false | ||
660 | +flag.toggle(); | ||
661 | + | ||
662 | + | ||
663 | +/// all types: | ||
664 | + | ||
665 | +// Sets the `value` to null. | ||
666 | +flag.nil(); | ||
667 | + | ||
668 | +// All toString(), toJson() operations are passed down to the `value` | ||
669 | +print( count ); // calls `toString()` inside for RxInt | ||
670 | + | ||
671 | +final abc = [0,1,2].obs; | ||
672 | +// Converts the value to a json Array, prints RxList | ||
673 | +// Json is supported by all Rx types! | ||
674 | +print('json: ${jsonEncode(abc)}, type: ${abc.runtimeType}'); | ||
675 | + | ||
676 | +// RxMap, RxList and RxSet are special Rx types, that extends their native types. | ||
677 | +// but you can work with a List as a regular list, although is reactive! | ||
678 | +abc.add(12); // pushes 12 to the list, and UPDATES the stream. | ||
679 | +abc[3]; // like Lists, reads the index 3. | ||
680 | + | ||
681 | + | ||
682 | +// equality works with the Rx and the value, but hashCode is always taken from the value | ||
683 | +final number = 12.obs; | ||
684 | +print( number == 12 ); // prints > true | ||
685 | + | ||
686 | +/// Custom Rx Models: | ||
687 | + | ||
688 | +// toJson(), toString() are deferred to the child, so you can implement override on them, and print() the observable directly. | ||
689 | + | ||
690 | +class User { | ||
691 | + String name, last; | ||
692 | + int age; | ||
693 | + User({this.name, this.last, this.age}); | ||
694 | + | ||
695 | + @override | ||
696 | + String toString() => '$name $last, $age years old'; | ||
697 | +} | ||
698 | + | ||
699 | +final user = User(name: 'John', last: 'Doe', age: 33).obs; | ||
700 | + | ||
701 | +// `user` is "reactive", but the properties inside ARE NOT! | ||
702 | +// So, if we change some variable inside of it... | ||
703 | +user.value.name = 'Roi'; | ||
704 | +// The widget will not rebuild!, | ||
705 | +// `Rx` don't have any clue when you change something inside user. | ||
706 | +// So, for custom classes, we need to manually "notify" the change. | ||
707 | +user.refresh(); | ||
708 | + | ||
709 | +// or we can use the `update()` method! | ||
710 | +user.update((value){ | ||
711 | + value.name='Roi'; | ||
712 | +}); | ||
713 | + | ||
714 | +print( user ); | ||
715 | +``` | ||
716 | + | ||
717 | +#### GetView | ||
718 | + | ||
719 | +I love this Widget, is so simple, yet, so useful! | ||
720 | + | ||
721 | +Is a `const Stateless` Widget that has a getter `controller` for a registered `Controller`, that's all. | ||
722 | + | ||
723 | +```dart | ||
724 | + class AwesomeController extends GetxController { | ||
725 | + final String title = 'My Awesome View'; | ||
726 | + } | ||
727 | + | ||
728 | + // ALWAYS remember to pass the `Type` you used to register your controller! | ||
729 | + class AwesomeView extends GetView<AwesomeController> { | ||
730 | + @override | ||
731 | + Widget build(BuildContext context) { | ||
732 | + return Container( | ||
733 | + padding: EdgeInsets.all(20), | ||
734 | + child: Text( controller.title ), // just call `controller.something` | ||
735 | + ); | ||
736 | + } | ||
737 | + } | ||
738 | +``` | ||
739 | + | ||
740 | +#### GetWidget | ||
741 | + | ||
742 | +Most people have no idea about this Widget, or totally confuse the usage of it. | ||
743 | +The use case is very rare, but very specific: It `caches` a Controller. | ||
744 | +Because of the _cache_, can't be a `const Stateless`. | ||
745 | + | ||
746 | +> So, when do you need to "cache" a Controller? | ||
747 | + | ||
748 | +If you use, another "not so common" feature of **GetX**: `Get.create()`. | ||
749 | + | ||
750 | +`Get.create(()=>Controller())` will generate a new `Controller` each time you call | ||
751 | +`Get.find<Controller>()`, | ||
752 | + | ||
753 | +That's where `GetWidget` shines... as you can use it, for example, | ||
754 | +to keep a list of Todo items. So, if the widget gets "rebuilt", it will keep the same controller instance. | ||
755 | + | ||
756 | +#### GetxService | ||
757 | + | ||
758 | +This class is like a `GetxController`, it shares the same lifecycle ( `onInit()`, `onReady()`, `onClose()`). | ||
759 | +But has no "logic" inside of it. It just notifies **GetX** Dependency Injection system, that this subclass | ||
760 | +**can not** be removed from memory. | ||
761 | + | ||
762 | +So is super useful to keep your "Services" always reachable and active with `Get.find()`. Like: | ||
763 | +`ApiService`, `StorageService`, `CacheService`. | ||
764 | + | ||
765 | +```dart | ||
766 | +Future<void> main() async { | ||
767 | + await initServices(); /// AWAIT SERVICES INITIALIZATION. | ||
768 | + runApp(SomeApp()); | ||
769 | +} | ||
770 | + | ||
771 | +/// Is a smart move to make your Services intiialize before you run the Flutter app. | ||
772 | +/// as you can control the execution flow (maybe you need to load some Theme configuration, | ||
773 | +/// apiKey, language defined by the User... so load SettingService before running ApiService. | ||
774 | +/// so GetMaterialApp() doesnt have to rebuild, and takes the values directly. | ||
775 | +void initServices() async { | ||
776 | + print('starting services ...'); | ||
777 | + /// Here is where you put get_storage, hive, shared_pref initialization. | ||
778 | + /// or moor connection, or whatever that's async. | ||
779 | + await Get.putAsync(() => DbService().init()); | ||
780 | + await Get.putAsync(SettingsService()).init(); | ||
781 | + print('All services started...'); | ||
782 | +} | ||
783 | + | ||
784 | +class DbService extends GetxService { | ||
785 | + Future<DbService> init() async { | ||
786 | + print('$runtimeType delays 2 sec'); | ||
787 | + await 2.delay(); | ||
788 | + print('$runtimeType ready!'); | ||
789 | + return this; | ||
790 | + } | ||
791 | +} | ||
792 | + | ||
793 | +class SettingsService extends GetxService { | ||
794 | + void init() async { | ||
795 | + print('$runtimeType delays 1 sec'); | ||
796 | + await 1.delay(); | ||
797 | + print('$runtimeType ready!'); | ||
798 | + } | ||
799 | +} | ||
800 | + | ||
801 | +``` | ||
802 | + | ||
803 | +The only way to actually delete a `GetxService`, is with `Get.reset()` which is like a | ||
804 | +"Hot Reboot" of your app. So remember, if you need absolute persistance of a class instance during the | ||
805 | +lifetime of your app, use `GetxService`. | ||
806 | + | ||
807 | +# 2.0의 주요 변경점 | ||
808 | + | ||
809 | +1- Rx types: | ||
810 | + | ||
811 | +| Before | After | | ||
812 | +| ------- | ---------- | | ||
813 | +| StringX | `RxString` | | ||
814 | +| IntX | `RxInt` | | ||
815 | +| MapX | `RxMap` | | ||
816 | +| ListX | `RxList` | | ||
817 | +| NumX | `RxNum` | | ||
818 | +| DoubleX | `RxDouble` | | ||
819 | + | ||
820 | +RxController and GetBuilder now have merged, you no longer need to memorize which controller you want to use, just use GetxController, it will work for simple state management and for reactive as well. | ||
821 | + | ||
822 | +2- NamedRoutes | ||
823 | +Before: | ||
824 | + | ||
825 | +```dart | ||
826 | +GetMaterialApp( | ||
827 | + namedRoutes: { | ||
828 | + '/': GetRoute(page: Home()), | ||
829 | + } | ||
830 | +) | ||
831 | +``` | ||
832 | + | ||
833 | +Now: | ||
834 | + | ||
835 | +```dart | ||
836 | +GetMaterialApp( | ||
837 | + getPages: [ | ||
838 | + GetPage(name: '/', page: () => Home()), | ||
839 | + ] | ||
840 | +) | ||
841 | +``` | ||
842 | + | ||
843 | +Why this change? | ||
844 | +Often, it may be necessary to decide which page will be displayed from a parameter, or a login token, the previous approach was inflexible, as it did not allow this. | ||
845 | +Inserting the page into a function has significantly reduced the RAM consumption, since the routes will not be allocated in memory since the app was started, and it also allowed to do this type of approach: | ||
846 | + | ||
847 | +```dart | ||
848 | + | ||
849 | +GetStorage box = GetStorage(); | ||
850 | + | ||
851 | +GetMaterialApp( | ||
852 | + getPages: [ | ||
853 | + GetPage(name: '/', page:(){ | ||
854 | + return box.hasData('token') ? Home() : Login(); | ||
855 | + }) | ||
856 | + ] | ||
857 | +) | ||
858 | +``` | ||
859 | + | ||
860 | +# 왜 Getx인가? | ||
861 | + | ||
862 | +1- Many times after a Flutter update, many of your packages will break. Sometimes compilation errors happen, errors often appear that there are still no answers about, and the developer needs to know where the error came from, track the error, only then try to open an issue in the corresponding repository, and see its problem solved. Get centralizes the main resources for development (State, dependency and route management), allowing you to add a single package to your pubspec, and start working. After a Flutter update, the only thing you need to do is update the Get dependency, and get to work. Get also resolves compatibility issues. How many times a version of a package is not compatible with the version of another, because one uses a dependency in one version, and the other in another version? This is also not a concern using Get, as everything is in the same package and is fully compatible. | ||
863 | + | ||
864 | +2- Flutter is easy, Flutter is incredible, but Flutter still has some boilerplate that may be unwanted for most developers, such as `Navigator.of(context).push (context, builder [...]`. Get simplifies development. Instead of writing 8 lines of code to just call a route, you can just do it: `Get.to(Home())` and you're done, you'll go to the next page. Dynamic web urls are a really painful thing to do with Flutter currently, and that with GetX is stupidly simple. Managing states in Flutter, and managing dependencies is also something that generates a lot of discussion, as there are hundreds of patterns in the pub. But there is nothing as easy as adding a ".obs" at the end of your variable, and place your widget inside an Obx, and that's it, all updates to that variable will be automatically updated on the screen. | ||
865 | + | ||
866 | +3- Ease without worrying about performance. Flutter's performance is already amazing, but imagine that you use a state manager, and a locator to distribute your blocs/stores/controllers/ etc. classes. You will have to manually call the exclusion of that dependency when you don't need it. But have you ever thought of simply using your controller, and when it was no longer being used by anyone, it would simply be deleted from memory? That's what GetX does. With SmartManagement, everything that is not being used is deleted from memory, and you shouldn't have to worry about anything but programming. You will be assured that you are consuming the minimum necessary resources, without even having created a logic for this. | ||
867 | + | ||
868 | +4- Actual decoupling. You may have heard the concept "separate the view from the business logic". This is not a peculiarity of BLoC, MVC, MVVM, and any other standard on the market has this concept. However, this concept can often be mitigated in Flutter due to the use of context. | ||
869 | +If you need context to find an InheritedWidget, you need it in the view, or pass the context by parameter. I particularly find this solution very ugly, and to work in teams we will always have a dependence on View's business logic. Getx is unorthodox with the standard approach, and while it does not completely ban the use of StatefulWidgets, InitState, etc., it always has a similar approach that can be cleaner. Controllers have life cycles, and when you need to make an APIREST request for example, you don't depend on anything in the view. You can use onInit to initiate the http call, and when the data arrives, the variables will be populated. As GetX is fully reactive (really, and works under streams), once the items are filled, all widgets that use that variable will be automatically updated in the view. This allows people with UI expertise to work only with widgets, and not have to send anything to business logic other than user events (like clicking a button), while people working with business logic will be free to create and test the business logic separately. | ||
870 | + | ||
871 | +This library will always be updated and implementing new features. Feel free to offer PRs and contribute to them. | ||
872 | + | ||
873 | +# 커뮤니티 | ||
874 | + | ||
875 | +## 커뮤니티 채널 | ||
876 | + | ||
877 | +GetX has a highly active and helpful community. If you have questions, or would like any assistance regarding the use of this framework, please join our community channels, your question will be answered more quickly, and it will be the most suitable place. This repository is exclusive for opening issues, and requesting resources, but feel free to be part of GetX Community. | ||
878 | + | ||
879 | +| **Slack** | **Discord** | **Telegram** | | ||
880 | +| :-------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------- | | ||
881 | +| [](https://communityinviter.com/apps/getxworkspace/getx) | [](https://discord.com/invite/9Hpt99N) | [](https://t.me/joinchat/PhdbJRmsZNpAqSLJL6bH7g) | | ||
882 | + | ||
883 | +## 기여하는 방법 | ||
884 | + | ||
885 | +_Want to contribute to the project? We will be proud to highlight you as one of our collaborators. Here are some points where you can contribute and make Get (and Flutter) even better._ | ||
886 | + | ||
887 | +- Helping to translate the readme into other languages. | ||
888 | +- Adding documentation to the readme (a lot of Get's functions haven't been documented yet). | ||
889 | +- Write articles or make videos teaching how to use Get (they will be inserted in the Readme and in the future in our Wiki). | ||
890 | +- Offering PRs for code/tests. | ||
891 | +- Including new functions. | ||
892 | + | ||
893 | +Any contribution is welcome! | ||
894 | + | ||
895 | +## 기사 및 비디오 | ||
896 | + | ||
897 | +- [Dynamic Themes in 3 lines using GetX™](https://medium.com/swlh/flutter-dynamic-themes-in-3-lines-c3b375f292e3) - Tutorial by [Rod Brown](https://github.com/RodBr). | ||
898 | +- [Complete GetX™ Navigation](https://www.youtube.com/watch?v=RaqPIoJSTtI) - Route management video by Amateur Coder. | ||
899 | +- [Complete GetX State Management](https://www.youtube.com/watch?v=CNpXbeI_slw) - State management video by Amateur Coder. | ||
900 | +- [GetX™ Other Features](https://youtu.be/ttQtlX_Q0eU) - Utils, storage, bindings and other features video by Amateur Coder. | ||
901 | +- [Firestore User with GetX | Todo App](https://www.youtube.com/watch?v=BiV0DcXgk58) - Video by Amateur Coder. | ||
902 | +- [Firebase Auth with GetX | Todo App](https://www.youtube.com/watch?v=-H-T_BSgfOE) - Video by Amateur Coder. | ||
903 | +- [The Flutter GetX™ Ecosystem ~ State Management](https://medium.com/flutter-community/the-flutter-getx-ecosystem-state-management-881c7235511d) - State management by [Aachman Garg](https://github.com/imaachman). | ||
904 | +- [The Flutter GetX™ Ecosystem ~ Dependency Injection](https://medium.com/flutter-community/the-flutter-getx-ecosystem-dependency-injection-8e763d0ec6b9) - Dependency Injection by [Aachman Garg](https://github.com/imaachman). | ||
905 | +- [GetX, the all-in-one Flutter package](https://www.youtube.com/watch?v=IYQgtu9TM74) - A brief tutorial covering State Management and Navigation by Thad Carnevalli. | ||
906 | +- [Build a To-do List App from scratch using Flutter and GetX](https://www.youtube.com/watch?v=EcnqFasHf18) - UI + State Management + Storage video by Thad Carnevalli. | ||
907 | +- [GetX Flutter Firebase Auth Example](https://medium.com/@jeffmcmorris/getx-flutter-firebase-auth-example-b383c1dd1de2) - Article by Jeff McMorris. | ||
908 | +- [Flutter State Management with GetX – Complete App](https://www.appwithflutter.com/flutter-state-management-with-getx/) - by App With Flutter. | ||
909 | +- [Flutter Routing with Animation using Get Package](https://www.appwithflutter.com/flutter-routing-using-get-package/) - by App With Flutter. | ||
910 | + |
-
Please register or login to post a comment