Showing
6 changed files
with
11 additions
and
3 deletions
| @@ -170,8 +170,9 @@ class GetConnect extends GetConnectInterface { | @@ -170,8 +170,9 @@ class GetConnect extends GetConnectInterface { | ||
| 170 | Decoder<T> decoder, | 170 | Decoder<T> decoder, |
| 171 | }) { | 171 | }) { |
| 172 | _checkIfDisposed(); | 172 | _checkIfDisposed(); |
| 173 | - return httpClient.put( | 173 | + return httpClient.request( |
| 174 | url, | 174 | url, |
| 175 | + method, | ||
| 175 | body: body, | 176 | body: body, |
| 176 | headers: headers, | 177 | headers: headers, |
| 177 | contentType: contentType, | 178 | contentType: contentType, |
| @@ -312,7 +312,7 @@ class GetHttpClient { | @@ -312,7 +312,7 @@ class GetHttpClient { | ||
| 312 | Future<Response<T>> request<T>( | 312 | Future<Response<T>> request<T>( |
| 313 | String url, | 313 | String url, |
| 314 | String method, { | 314 | String method, { |
| 315 | - Map<String, dynamic> body, | 315 | + dynamic body, |
| 316 | String contentType, | 316 | String contentType, |
| 317 | Map<String, String> headers, | 317 | Map<String, String> headers, |
| 318 | Map<String, dynamic> query, | 318 | Map<String, dynamic> query, |
| @@ -204,6 +204,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -204,6 +204,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
| 204 | settings: RouteSettings(name: name, arguments: null), | 204 | settings: RouteSettings(name: name, arguments: null), |
| 205 | curve: unknownRoute.curve, | 205 | curve: unknownRoute.curve, |
| 206 | opaque: unknownRoute.opaque, | 206 | opaque: unknownRoute.opaque, |
| 207 | + routeName: unknownRoute.name, | ||
| 207 | customTransition: unknownRoute.customTransition, | 208 | customTransition: unknownRoute.customTransition, |
| 208 | binding: unknownRoute.binding, | 209 | binding: unknownRoute.binding, |
| 209 | bindings: unknownRoute.bindings, | 210 | bindings: unknownRoute.bindings, |
| @@ -223,6 +224,7 @@ class GetCupertinoApp extends StatelessWidget { | @@ -223,6 +224,7 @@ class GetCupertinoApp extends StatelessWidget { | ||
| 223 | settings: RouteSettings(name: name, arguments: null), | 224 | settings: RouteSettings(name: name, arguments: null), |
| 224 | curve: match.route.curve, | 225 | curve: match.route.curve, |
| 225 | opaque: match.route.opaque, | 226 | opaque: match.route.opaque, |
| 227 | + routeName: match.route.name, | ||
| 226 | binding: match.route.binding, | 228 | binding: match.route.binding, |
| 227 | bindings: match.route.bindings, | 229 | bindings: match.route.bindings, |
| 228 | transitionDuration: | 230 | transitionDuration: |
| @@ -215,6 +215,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -215,6 +215,7 @@ class GetMaterialApp extends StatelessWidget { | ||
| 215 | settings: RouteSettings(name: name, arguments: null), | 215 | settings: RouteSettings(name: name, arguments: null), |
| 216 | curve: unknownRoute.curve, | 216 | curve: unknownRoute.curve, |
| 217 | opaque: unknownRoute.opaque, | 217 | opaque: unknownRoute.opaque, |
| 218 | + routeName: unknownRoute.name, | ||
| 218 | customTransition: unknownRoute.customTransition, | 219 | customTransition: unknownRoute.customTransition, |
| 219 | binding: unknownRoute.binding, | 220 | binding: unknownRoute.binding, |
| 220 | bindings: unknownRoute.bindings, | 221 | bindings: unknownRoute.bindings, |
| @@ -235,6 +236,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -235,6 +236,7 @@ class GetMaterialApp extends StatelessWidget { | ||
| 235 | curve: match.route.curve, | 236 | curve: match.route.curve, |
| 236 | opaque: match.route.opaque, | 237 | opaque: match.route.opaque, |
| 237 | binding: match.route.binding, | 238 | binding: match.route.binding, |
| 239 | + routeName: match.route.name, | ||
| 238 | bindings: match.route.bindings, | 240 | bindings: match.route.bindings, |
| 239 | transitionDuration: | 241 | transitionDuration: |
| 240 | (match.route.transitionDuration ?? Get.defaultTransitionDuration), | 242 | (match.route.transitionDuration ?? Get.defaultTransitionDuration), |
| 1 | name: get | 1 | name: get |
| 2 | description: Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with GetX. | 2 | description: Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with GetX. |
| 3 | -version: 3.21.1 | 3 | +version: 3.21.2 |
| 4 | homepage: https://github.com/jonataslaw/getx | 4 | homepage: https://github.com/jonataslaw/getx |
| 5 | 5 | ||
| 6 | environment: | 6 | environment: |
-
Please register or login to post a comment