Jonatas

update to 3.24.0

## [3.23.1]
- Fix allowSelfSigned
## [3.24.0]
- GetWidget has been completely redesigned.
Throughout its lifetime, GetWidget has always been mentioned in the documentation as "something you shouldn't use unless you're sure you need it", and it had a very small use case. A short time ago we realized that it could have some unexpected behaviors, when compared to GetView, so we decided to rebuild it from scratch, creating a really useful widget for the ecosystem.
Objectively, GetWidget is now a Widget that caches the controller and protects children from their parents' reconstructions. This means that if you have a ListView or gridview, you can add items to it without the child (being a GetWidget) being rebuilt. The api is now more concise, as you can use Get.put / Get.lazyput for global dependencies, and Get.create with GetWidget for ephemeral dependencies, or when you need several identical controllers for the same widget, eliminating the need for tags for most cases.
- Workers now have error handlers, so if an error occurs in your stream, you can recover it from your workers.
- `isTrue` and `isFalse` setters were added to [RxBool], this will make the code more readable, and will mitigate the use of ".value" in Booleans.
- [Patch] method was added in GetConnect.
- Native methods for RxString (trim, contains, startWith, etc.) have been added.
- Standard constructors for RxList and RxMap have been added (RxList.generate, RxList.from, Map.of, Map.from, etc).
- Added "onEmpty" status in StateMixin (@alizera)
- Added query and mutation methods of graphql for getconnect.
- Added body string for content-type application/x-www-form-urlencoded on GetConnect (@eduardoflorence)
## [3.23.1]
- Fix allowSelfSigned on Flutter web
... ...
... ... @@ -59,7 +59,34 @@ abstract class GetConnectInterface with GetLifeCycleBase {
Decoder<T> decoder,
});
GetSocket socket(String url, {Duration ping = const Duration(seconds: 5)});
Future<Response<T>> patch<T>(
String url,
dynamic body, {
String contentType,
Map<String, String> headers,
Map<String, dynamic> query,
Decoder<T> decoder,
Progress uploadProgress,
});
Future<GraphQLResponse<T>> query<T>(
String query, {
String url,
Map<String, dynamic> variables,
Map<String, String> headers,
});
Future<GraphQLResponse<T>> mutation<T>(
String mutation, {
String url,
Map<String, dynamic> variables,
Map<String, String> headers,
});
GetSocket socket(
String url, {
Duration ping = const Duration(seconds: 5),
});
}
class GetConnect extends GetConnectInterface {
... ... @@ -165,6 +192,28 @@ class GetConnect extends GetConnectInterface {
}
@override
Future<Response<T>> patch<T>(
String url,
dynamic body, {
String contentType,
Map<String, String> headers,
Map<String, dynamic> query,
Decoder<T> decoder,
Progress uploadProgress,
}) {
_checkIfDisposed();
return httpClient.patch<T>(
url,
body: body,
headers: headers,
contentType: contentType,
query: query,
decoder: decoder,
uploadProgress: uploadProgress,
);
}
@override
Future<Response<T>> request<T>(
String url,
String method, {
... ... @@ -242,6 +291,7 @@ class GetConnect extends GetConnectInterface {
///""",
///);
///print(response.body);
@override
Future<GraphQLResponse<T>> query<T>(
String query, {
String url,
... ... @@ -274,6 +324,7 @@ class GetConnect extends GetConnectInterface {
}
}
@override
Future<GraphQLResponse<T>> mutation<T>(
String mutation, {
String url,
... ...
import 'dart:async';
import 'dart:collection';
import 'package:get/utils.dart';
import '../../get_core/get_core.dart';
import 'lifecycle.dart';
... ...
name: get
description: Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with GetX.
version: 3.23.1
version: 3.24.0
homepage: https://github.com/jonataslaw/getx
environment:
... ...