Jonatas

update to 3.21.1

## [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:
... ...
... ... @@ -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,
... ...
... ... @@ -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,
... ...
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:
... ...