-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1833 from EnsembleUI/enhance/camera-frame
overlay image cropping
- Loading branch information
Showing
5 changed files
with
196 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Stub implementation for non-web platforms | ||
library web; | ||
|
||
class Blob { | ||
Blob(List<dynamic> array, String type) { | ||
throw UnsupportedError('Blob is only supported on web platforms'); | ||
} | ||
} | ||
|
||
class Url { | ||
static String createObjectUrlFromBlob(dynamic blob) { | ||
throw UnsupportedError('URL.createObjectURL is only supported on web platforms'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'stub.dart' if (dart.library.html) 'dart:html' as html; | ||
|
||
class Blob { | ||
final dynamic _blob; | ||
|
||
Blob(List<dynamic> array, String type) | ||
: _blob = html.Blob(array, type); | ||
} | ||
|
||
class Url { | ||
static String createObjectUrlFromBlob(Blob blob) { | ||
return html.Url.createObjectUrlFromBlob(blob._blob); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters