test
This commit is contained in:
parent
ab593a45b9
commit
692a672bbf
@ -107,7 +107,7 @@ class APIService<T extends SerializerDeserializer> {
|
|||||||
try {
|
try {
|
||||||
_dio.options.headers["Authorization"] = "Bearer ${localStorage.getItem('accessToken') ?? ""}";
|
_dio.options.headers["Authorization"] = "Bearer ${localStorage.getItem('accessToken') ?? ""}";
|
||||||
_dio.interceptors.clear();
|
_dio.interceptors.clear();
|
||||||
print("${_dio.options.baseUrl}$url" );
|
print("URL ${_dio.options.baseUrl}$url" );
|
||||||
var response = await _request(url, method, body, options);
|
var response = await _request(url, method, body, options);
|
||||||
if (response.statusCode != null && response.statusCode! < 400) {
|
if (response.statusCode != null && response.statusCode! < 400) {
|
||||||
if (method == "delete") { cache.remove(url); return APIResponse<T>(); }
|
if (method == "delete") { cache.remove(url); return APIResponse<T>(); }
|
||||||
@ -137,7 +137,7 @@ class APIService<T extends SerializerDeserializer> {
|
|||||||
alertBannerLocation: AlertBannerLocation.bottom,);
|
alertBannerLocation: AlertBannerLocation.bottom,);
|
||||||
} catch (e) { /* */ }
|
} catch (e) { /* */ }
|
||||||
}
|
}
|
||||||
throw Exception(err);
|
throw Exception("${_dio.options.baseUrl}$url $err");
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<APIResponse<RawData>> raw(
|
Future<APIResponse<RawData>> raw(
|
||||||
|
@ -48,7 +48,10 @@ class StorageItem extends AbstractItem<StoragePricing, StoragePartnership, Stora
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override Map<String, dynamic> serialize() {
|
@override Map<String, dynamic> serialize() {
|
||||||
var obj = infos();
|
var obj = {
|
||||||
|
"acronym": acronym,
|
||||||
|
"storage_type": typeEnum,
|
||||||
|
};
|
||||||
obj.addAll(toJSON());
|
obj.addAll(toJSON());
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ class SchedulerFormsWidgetState extends State<SchedulerFormsWidget> {
|
|||||||
} catch (e) { /* */ }
|
} catch (e) { /* */ }
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
}).catchError((e) {});
|
||||||
} else {
|
} else {
|
||||||
Future.delayed(const Duration(milliseconds: 100), () {
|
Future.delayed(const Duration(milliseconds: 100), () {
|
||||||
widget.shouldSearch = true;
|
widget.shouldSearch = true;
|
||||||
|
@ -374,10 +374,10 @@ class FlowChartState<T extends FlowData> extends State<FlowChart> {
|
|||||||
if (event.logicalKey == LogicalKeyboardKey.controlLeft && event is KeyUpEvent) {
|
if (event.logicalKey == LogicalKeyboardKey.controlLeft && event is KeyUpEvent) {
|
||||||
isCtrl = false;
|
isCtrl = false;
|
||||||
}
|
}
|
||||||
if ((event is KeyDownEvent || event.logicalKey == LogicalKeyboardKey.keyZ) && isCtrl) {
|
if ((event is KeyDownEvent && event.logicalKey == LogicalKeyboardKey.keyZ) && isCtrl) {
|
||||||
widget.dashboard.back();
|
widget.dashboard.back();
|
||||||
}
|
}
|
||||||
if ((event is KeyDownEvent || event.logicalKey == LogicalKeyboardKey.keyY) && isCtrl) {
|
if ((event is KeyDownEvent && event.logicalKey == LogicalKeyboardKey.keyY) && isCtrl) {
|
||||||
widget.dashboard.forward();
|
widget.dashboard.forward();
|
||||||
}
|
}
|
||||||
if (event is KeyDownEvent && event.logicalKey == LogicalKeyboardKey.add) {
|
if (event is KeyDownEvent && event.logicalKey == LogicalKeyboardKey.add) {
|
||||||
|
Loading…
Reference in New Issue
Block a user