diff --git a/lib/gateway/postcard_api.dart b/lib/gateway/postcard_api.dart index 1211bfa06..30457eda5 100644 --- a/lib/gateway/postcard_api.dart +++ b/lib/gateway/postcard_api.dart @@ -4,6 +4,7 @@ import 'package:autonomy_flutter/screen/interactive_postcard/leaderboard/postcar import 'package:autonomy_flutter/screen/send_receive_postcard/receive_postcard_page.dart'; import 'package:collection/collection.dart'; import 'package:dio/dio.dart'; +import 'package:dio_smart_retry/dio_smart_retry.dart'; import 'package:retrofit/retrofit.dart'; import '../model/postcard_claim.dart'; diff --git a/lib/gateway/postcard_api.g.dart b/lib/gateway/postcard_api.g.dart index 438cc7431..ebe1bc282 100644 --- a/lib/gateway/postcard_api.g.dart +++ b/lib/gateway/postcard_api.g.dart @@ -177,14 +177,14 @@ class _PostcardApi implements PostcardApi { final _data = FormData(); _data.files.add(MapEntry( 'image', - MultipartFile.fromFileSync( + MultipartFileRecreatable.fromFileSync( data.path, filename: data.path.split(Platform.pathSeparator).last, ), )); _data.files.add(MapEntry( 'metadata', - MultipartFile.fromFileSync( + MultipartFileRecreatable.fromFileSync( metadata.path, filename: metadata.path.split(Platform.pathSeparator).last, ),