Jonatas

remove microtask from group update

@@ -67,8 +67,13 @@ _语言: 中文, [英文](README.md), [印度尼西亚](README.id-ID.md), [乌 @@ -67,8 +67,13 @@ _语言: 中文, [英文](README.md), [印度尼西亚](README.id-ID.md), [乌
67 67
68 **此外,通过[Get CLI](https://github.com/jonataslaw/get_cli)**,无论是在服务器上还是在前端,整个开发过程都可以完全自动化。 68 **此外,通过[Get CLI](https://github.com/jonataslaw/get_cli)**,无论是在服务器上还是在前端,整个开发过程都可以完全自动化。
69 69
70 -**此外,为了进一步提高您的生产效率,我们还为您准备了  
71 -[VSCode扩展](https://marketplace.visualstudio.com/items?itemName=get-snippets.get-snippets)[Android Studio/Intellij扩展](https://plugins.jetbrains.com/plugin/14975-getx-snippets)** 70 +**此外,为了进一步提高您的生产效率,我们还为您准备了一些插件**
  71 +
  72 +- **getx_template**:一键生成每个页面必需的文件夹、文件、模板代码等等
  73 + - [Android Studio/Intellij插件](https://plugins.jetbrains.com/plugin/15919-getx)
  74 +- **GetX Snippets**:输入少量字母,自动提示选择后,可生成常用的模板代码
  75 + - [Android Studio/Intellij扩展](https://plugins.jetbrains.com/plugin/14975-getx-snippets)
  76 + - [VSCode扩展](https://marketplace.visualstudio.com/items?itemName=get-snippets.get-snippets)
72 77
73 # 安装 78 # 安装
74 79
@@ -906,4 +911,6 @@ _想为项目做贡献吗?我们将自豪地强调你是我们的合作者之 @@ -906,4 +911,6 @@ _想为项目做贡献吗?我们将自豪地强调你是我们的合作者之
906 - [GetX Flutter Firebase Auth Example](https://medium.com/@jeffmcmorris/getx-flutter-firebase-auth-example-b383c1dd1de2) - Article by Jeff McMorris. 911 - [GetX Flutter Firebase Auth Example](https://medium.com/@jeffmcmorris/getx-flutter-firebase-auth-example-b383c1dd1de2) - Article by Jeff McMorris.
907 - [Flutter State Management with GetX – Complete App](https://www.appwithflutter.com/flutter-state-management-with-getx/) - by App With Flutter. 912 - [Flutter State Management with GetX – Complete App](https://www.appwithflutter.com/flutter-state-management-with-getx/) - by App With Flutter.
908 - [Flutter Routing with Animation using Get Package](https://www.appwithflutter.com/flutter-routing-using-get-package/) - by App With Flutter. 913 - [Flutter Routing with Animation using Get Package](https://www.appwithflutter.com/flutter-routing-using-get-package/) - by App With Flutter.
  914 +- [Flutter GetX use --- simple charm!](https://github.com/CNAD666/getx_template/blob/main/docs/Use of Flutter GetX---simple charm!.md) - CNAD666
  915 + - [Flutter GetX使用---简洁的魅力!](https://juejin.cn/post/6924104248275763208)
909 916
@@ -139,7 +139,7 @@ class GetHttpClient { @@ -139,7 +139,7 @@ class GetHttpClient {
139 url: uri, 139 url: uri,
140 headers: headers, 140 headers: headers,
141 bodyBytes: bodyStream, 141 bodyBytes: bodyStream,
142 - contentLength: bodyBytes.length, 142 + contentLength: bodyBytes?.length ?? 0,
143 followRedirects: followRedirects, 143 followRedirects: followRedirects,
144 maxRedirects: maxRedirects, 144 maxRedirects: maxRedirects,
145 decoder: decoder, 145 decoder: decoder,
@@ -38,7 +38,7 @@ abstract class _RouteMiddleware { @@ -38,7 +38,7 @@ abstract class _RouteMiddleware {
38 /// ```dart 38 /// ```dart
39 /// GetPage onPageCalled(GetPage page) { 39 /// GetPage onPageCalled(GetPage page) {
40 /// final authService = Get.find<AuthService>(); 40 /// final authService = Get.find<AuthService>();
41 - /// return page.copyWith(title: 'Wellcome ${authService.UserName}'); 41 + /// return page.copyWith(title: 'Welcome ${authService.UserName}');
42 /// } 42 /// }
43 /// ``` 43 /// ```
44 /// {@end-tool} 44 /// {@end-tool}
@@ -51,7 +51,7 @@ extension Trans on String { @@ -51,7 +51,7 @@ extension Trans on String {
51 } 51 }
52 52
53 String trPlural([String pluralKey, int i, List<String> args = const []]) { 53 String trPlural([String pluralKey, int i, List<String> args = const []]) {
54 - return i > 1 ? pluralKey.trArgs(args) : trArgs(args); 54 + return i == 1 ? pluralKey.trArgs(args) : trArgs(args);
55 } 55 }
56 56
57 String trParams([Map<String, String> params = const {}]) { 57 String trParams([Map<String, String> params = const {}]) {
@@ -66,7 +66,7 @@ extension Trans on String { @@ -66,7 +66,7 @@ extension Trans on String {
66 66
67 String trPluralParams( 67 String trPluralParams(
68 [String pluralKey, int i, Map<String, String> params = const {}]) { 68 [String pluralKey, int i, Map<String, String> params = const {}]) {
69 - return i > 1 ? pluralKey.trParams(params) : trParams(params); 69 + return i == 1 ? pluralKey.trParams(params) : trParams(params);
70 } 70 }
71 } 71 }
72 72