From 24a0ec2c68a1ec898d0164dfac18062c65aab246 Mon Sep 17 00:00:00 2001 From: darlington95 Date: Wed, 3 Apr 2024 23:40:21 +0900 Subject: [PATCH 1/3] =?UTF-8?q?MetaResponse=E3=81=AEads=E3=81=AEimageUrl?= =?UTF-8?q?=E3=82=92trim=E3=81=97=E3=81=A6=E5=85=88=E9=A0=AD=E3=81=8C?= =?UTF-8?q?=E3=82=BF=E3=83=96=E6=96=87=E5=AD=97=E3=81=AA=E3=82=B5=E3=83=BC?= =?UTF-8?q?=E3=83=90=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/data/meta_response.g.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/data/meta_response.g.dart b/lib/src/data/meta_response.g.dart index bf7d7872..a80a6a29 100644 --- a/lib/src/data/meta_response.g.dart +++ b/lib/src/data/meta_response.g.dart @@ -162,7 +162,7 @@ _$MetaAdImpl _$$MetaAdImplFromJson(Map json) => _$MetaAdImpl( id: json['id'] as String, place: json['place'] as String, url: const UriConverter().fromJson(json['url'] as String), - imageUrl: const UriConverter().fromJson(json['imageUrl'] as String), + imageUrl: const UriConverter().fromJson((json['imageUrl'] as String).trim()), ratio: json['ratio'] as int, ); From 362e7af4ab26f0eb46dc9b70b0691dd7ba6b544c Mon Sep 17 00:00:00 2001 From: darlington95 Date: Thu, 4 Apr 2024 22:50:10 +0900 Subject: [PATCH 2/3] =?UTF-8?q?Revert=20"MetaResponse=E3=81=AEads=E3=81=AE?= =?UTF-8?q?imageUrl=E3=82=92trim=E3=81=97=E3=81=A6=E5=85=88=E9=A0=AD?= =?UTF-8?q?=E3=81=8C=E3=82=BF=E3=83=96=E6=96=87=E5=AD=97=E3=81=AA=E3=82=B5?= =?UTF-8?q?=E3=83=BC=E3=83=90=E3=81=AB=E5=AF=BE=E5=BF=9C"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 24a0ec2c68a1ec898d0164dfac18062c65aab246. --- lib/src/data/meta_response.g.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/data/meta_response.g.dart b/lib/src/data/meta_response.g.dart index a80a6a29..bf7d7872 100644 --- a/lib/src/data/meta_response.g.dart +++ b/lib/src/data/meta_response.g.dart @@ -162,7 +162,7 @@ _$MetaAdImpl _$$MetaAdImplFromJson(Map json) => _$MetaAdImpl( id: json['id'] as String, place: json['place'] as String, url: const UriConverter().fromJson(json['url'] as String), - imageUrl: const UriConverter().fromJson((json['imageUrl'] as String).trim()), + imageUrl: const UriConverter().fromJson(json['imageUrl'] as String), ratio: json['ratio'] as int, ); From 3e18be8d3bf64ff4ba6c2710304f3c808abb5721 Mon Sep 17 00:00:00 2001 From: darlington95 Date: Thu, 4 Apr 2024 23:08:04 +0900 Subject: [PATCH 3/3] =?UTF-8?q?UriConverter=E3=81=A7=E5=89=8D=E5=BE=8C?= =?UTF-8?q?=E3=81=AE=E4=BD=99=E5=88=86=E3=81=AA=E7=A9=BA=E7=99=BD=E3=82=84?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=82=92=E9=99=A4=E5=8E=BB=E3=81=97=E3=81=A6?= =?UTF-8?q?=E3=81=8B=E3=82=89Uri=E3=82=92=E5=BE=97=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/converters/uri_converter.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/converters/uri_converter.dart b/lib/src/converters/uri_converter.dart index e4e25431..249ea0f8 100644 --- a/lib/src/converters/uri_converter.dart +++ b/lib/src/converters/uri_converter.dart @@ -19,7 +19,7 @@ class UriConverter extends JsonConverter { @override Uri fromJson(String json) { - return Uri.parse(json); + return Uri.parse(json.trim()); } @override