Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonatas
2021-02-22 14:19:57 -0300
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ea47e53160904ebf35badd535f6a0b4fb2388dd6
ea47e531
2 parents
f7c769b5
e8513823
remove microtask from group update
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
README.zh-cn.md
lib/get_connect/http/src/http.dart
lib/get_navigation/src/routes/route_middleware.dart
lib/get_utils/src/extensions/internacionalization.dart
README.zh-cn.md
View file @
ea47e53
...
...
@@ -67,8 +67,13 @@ _语言: 中文, [英文](README.md), [印度尼西亚](README.id-ID.md), [乌
**此外,通过[Get CLI](https://github.com/jonataslaw/get_cli)**
,无论是在服务器上还是在前端,整个开发过程都可以完全自动化。
**
此外,为了进一步提高您的生产效率,我们还为您准备了
[
VSCode扩展
](
https://marketplace.visualstudio.com/items?itemName=get-snippets.get-snippets
)
和
[
Android Studio/Intellij扩展
](
https://plugins.jetbrains.com/plugin/14975-getx-snippets
)
**
。
**此外,为了进一步提高您的生产效率,我们还为您准备了一些插件**
-
**getx_template**
:一键生成每个页面必需的文件夹、文件、模板代码等等
-
[
Android Studio/Intellij插件
](
https://plugins.jetbrains.com/plugin/15919-getx
)
-
**GetX Snippets**
:输入少量字母,自动提示选择后,可生成常用的模板代码
-
[
Android Studio/Intellij扩展
](
https://plugins.jetbrains.com/plugin/14975-getx-snippets
)
-
[
VSCode扩展
](
https://marketplace.visualstudio.com/items?itemName=get-snippets.get-snippets
)
# 安装
...
...
@@ -906,4 +911,6 @@ _想为项目做贡献吗?我们将自豪地强调你是我们的合作者之
-
[
GetX Flutter Firebase Auth Example
](
https://medium.com/@jeffmcmorris/getx-flutter-firebase-auth-example-b383c1dd1de2
)
- Article by Jeff McMorris.
-
[
Flutter State Management with GetX – Complete App
](
https://www.appwithflutter.com/flutter-state-management-with-getx/
)
- by App With Flutter.
-
[
Flutter Routing with Animation using Get Package
](
https://www.appwithflutter.com/flutter-routing-using-get-package/
)
- by App With Flutter.
-
[
Flutter GetX use --- simple charm!
](
https://github.com/CNAD666/getx_template/blob/main/docs/Use
of Flutter GetX---simple charm!.md) - CNAD666
-
[
Flutter GetX使用---简洁的魅力!
](
https://juejin.cn/post/6924104248275763208
)
...
...
lib/get_connect/http/src/http.dart
View file @
ea47e53
...
...
@@ -139,7 +139,7 @@ class GetHttpClient {
url:
uri
,
headers:
headers
,
bodyBytes:
bodyStream
,
contentLength:
bodyBytes
.
length
,
contentLength:
bodyBytes
?.
length
??
0
,
followRedirects:
followRedirects
,
maxRedirects:
maxRedirects
,
decoder:
decoder
,
...
...
lib/get_navigation/src/routes/route_middleware.dart
View file @
ea47e53
...
...
@@ -38,7 +38,7 @@ abstract class _RouteMiddleware {
/// ```dart
/// GetPage onPageCalled(GetPage page) {
/// final authService = Get.find<AuthService>();
/// return page.copyWith(title: 'Wel
l
come ${authService.UserName}');
/// return page.copyWith(title: 'Welcome ${authService.UserName}');
/// }
/// ```
/// {@end-tool}
...
...
lib/get_utils/src/extensions/internacionalization.dart
View file @
ea47e53
...
...
@@ -51,7 +51,7 @@ extension Trans on String {
}
String
trPlural
([
String
pluralKey
,
int
i
,
List
<
String
>
args
=
const
[]])
{
return
i
>
1
?
pluralKey
.
trArgs
(
args
)
:
trArgs
(
args
);
return
i
==
1
?
pluralKey
.
trArgs
(
args
)
:
trArgs
(
args
);
}
String
trParams
([
Map
<
String
,
String
>
params
=
const
{}])
{
...
...
@@ -66,7 +66,7 @@ extension Trans on String {
String
trPluralParams
(
[
String
pluralKey
,
int
i
,
Map
<
String
,
String
>
params
=
const
{}])
{
return
i
>
1
?
pluralKey
.
trParams
(
params
)
:
trParams
(
params
);
return
i
==
1
?
pluralKey
.
trParams
(
params
)
:
trParams
(
params
);
}
}
...
...
Please
register
or
login
to post a comment