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
2020-11-29 14:29:51 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5d019b4fce34e121bb11ae3d1225dec5268b04fb
5d019b4f
1 parent
270fae5a
update to 3.21.1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
9 deletions
CHANGELOG.md
lib/get_connect/connect.dart
lib/get_connect/http/src/http.dart
pubspec.yaml
CHANGELOG.md
View file @
5d019b4
## [3.21.1]
-
Allow null body to POST method on GetConnect
## [3.21.0] - Big update
-
This update attaches two nice features developed by (@SchabanBo):
*GetPage Children*
And
*GetMiddleware*
In previous versions, to create child pages, you should do something like:
...
...
lib/get_connect/connect.dart
View file @
5d019b4
...
...
@@ -22,20 +22,32 @@ abstract class GetConnectInterface with GetLifeCycleBase {
Map
<
String
,
dynamic
>
query
,
Decoder
<
T
>
decoder
,
});
Future
<
Response
<
T
>>
request
<
T
>(
String
url
,
String
method
,
{
dynamic
body
,
String
contentType
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
dynamic
>
query
,
Decoder
<
T
>
decoder
,
});
Future
<
Response
<
T
>>
post
<
T
>(
String
url
,
dynamic
body
,
{
String
contentType
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
dynamic
>
query
,
Decoder
<
T
>
decoder
,
});
Future
<
Response
<
T
>>
put
<
T
>(
String
url
,
Map
<
String
,
dynamic
>
body
,
{
dynamic
body
,
{
String
contentType
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
dynamic
>
query
,
Decoder
<
T
>
decoder
,
});
Future
<
Response
<
T
>>
delete
<
T
>(
...
...
@@ -43,6 +55,7 @@ abstract class GetConnectInterface with GetLifeCycleBase {
Map
<
String
,
String
>
headers
,
String
contentType
,
Map
<
String
,
dynamic
>
query
,
Decoder
<
T
>
decoder
,
});
GetSocket
socket
(
String
url
,
{
Duration
ping
=
const
Duration
(
seconds:
5
)});
...
...
@@ -118,7 +131,7 @@ class GetConnect extends GetConnectInterface {
_checkIfDisposed
();
return
httpClient
.
post
<
T
>(
url
,
body
,
body
:
body
,
headers:
headers
,
contentType:
contentType
,
query:
query
,
...
...
@@ -129,7 +142,28 @@ class GetConnect extends GetConnectInterface {
@override
Future
<
Response
<
T
>>
put
<
T
>(
String
url
,
Map
<
String
,
dynamic
>
body
,
{
dynamic
body
,
{
String
contentType
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
dynamic
>
query
,
Decoder
<
T
>
decoder
,
})
{
_checkIfDisposed
();
return
httpClient
.
put
(
url
,
body:
body
,
headers:
headers
,
contentType:
contentType
,
query:
query
,
decoder:
decoder
,
);
}
@override
Future
<
Response
<
T
>>
request
<
T
>(
String
url
,
String
method
,
{
dynamic
body
,
String
contentType
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
dynamic
>
query
,
...
...
@@ -138,7 +172,7 @@ class GetConnect extends GetConnectInterface {
_checkIfDisposed
();
return
httpClient
.
put
(
url
,
body
,
body
:
body
,
headers:
headers
,
contentType:
contentType
,
query:
query
,
...
...
lib/get_connect/http/src/http.dart
View file @
5d019b4
...
...
@@ -275,8 +275,8 @@ class GetHttpClient {
}
Future
<
Response
<
T
>>
post
<
T
>(
String
url
,
dynamic
body
,
{
String
url
,
{
dynamic
body
,
String
contentType
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
dynamic
>
query
,
...
...
@@ -345,8 +345,8 @@ class GetHttpClient {
}
Future
<
Response
<
T
>>
put
<
T
>(
String
url
,
Map
<
String
,
dynamic
>
body
,
{
String
url
,
{
dynamic
body
,
String
contentType
,
Map
<
String
,
String
>
headers
,
Map
<
String
,
dynamic
>
query
,
...
...
pubspec.yaml
View file @
5d019b4
name
:
get
description
:
Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with GetX.
version
:
3.21.
0
version
:
3.21.
1
homepage
:
https://github.com/jonataslaw/getx
environment
:
...
...
Please
register
or
login
to post a comment