Skip to content

Commit

Permalink
fix:Change toImageProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jul 24, 2023
1 parent dd88489 commit cce1ad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/masamune/lib/form/extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extension FormMediaValueExtensions on FormMediaValue {
/// [defaultAssetURI]が指定されている場合、[ImageProvider]が取得できない場合は[defaultAssetURI]を使用します。
///
/// また[type][FormMediaType.image]でない場合は[defaultAssetURI]を使用します。
ImageProvider image([String defaultAssetURI = "assets/image.png"]) {
ImageProvider toImageProvider([String defaultAssetURI = "assets/image.png"]) {
if (type != FormMediaType.image) {
return Asset.image(defaultAssetURI);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune/lib/model/extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension ModelImageUriExtensions on ModelImageUri {
/// [ImageProvider]を取得します。
///
/// [defaultAssetURI]が指定されている場合、[ImageProvider]が取得できない場合は[defaultAssetURI]を使用します。
ImageProvider image([String defaultAssetURI = "assets/image.png"]) {
ImageProvider toImageProvider([String defaultAssetURI = "assets/image.png"]) {
return Asset.image(value.toString(), defaultAssetURI);
}

Expand Down

0 comments on commit cce1ad6

Please sign in to comment.