|
@@ -17,12 +17,12 @@ import 'editable_box.dart';
|
17
|
17
|
/// Provides interface for embedding images into Zefyr editor.
|
18
|
18
|
// TODO: allow configuring image sources and related toolbar buttons.
|
19
|
19
|
@experimental
|
20
|
|
-abstract class ZefyrImageDelegate<S> {
|
21
|
|
- /// Unique key to identify camera source.
|
22
|
|
- S get cameraSource;
|
|
20
|
+abstract class ZefyrImageDelegate {
|
|
21
|
+ // /// Unique key to identify camera source.
|
|
22
|
+ // S get cameraSource;
|
23
|
23
|
|
24
|
|
- /// Unique key to identify gallery source.
|
25
|
|
- S get gallerySource;
|
|
24
|
+ // /// Unique key to identify gallery source.
|
|
25
|
+ // S get gallerySource;
|
26
|
26
|
|
27
|
27
|
/// Builds image widget for specified image [key].
|
28
|
28
|
///
|
|
@@ -40,7 +40,7 @@ abstract class ZefyrImageDelegate<S> {
|
40
|
40
|
/// Depending on your application returned key may represent a path to
|
41
|
41
|
/// an image file on user's device, an HTTP link, or an identifier generated
|
42
|
42
|
/// by a file hosting service like AWS S3 or Google Drive.
|
43
|
|
- Future<String> pickImage(S source);
|
|
43
|
+ // Future<String> pickImage(S source);
|
44
|
44
|
|
45
|
45
|
Future<String> picked(File file, bool isFullImage);
|
46
|
46
|
}
|