Commit f7e2923f authored by 林生雨's avatar 林生雨

w

parent 119c7c10
...@@ -188,9 +188,9 @@ ...@@ -188,9 +188,9 @@
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectFrameBounds" extendedState="6"> <component name="ProjectFrameBounds">
<option name="x" value="11" /> <option name="x" value="45" />
<option name="y" value="51" /> <option name="y" value="23" />
<option name="width" value="1440" /> <option name="width" value="1440" />
<option name="height" value="811" /> <option name="height" value="811" />
</component> </component>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* @date 2019-09-09 * @date 2019-09-09
**/ **/
import 'dart:io'; import 'dart:io';
import 'dart:typed_data';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/src/services/platform_channel.dart'; import 'package:flutter/src/services/platform_channel.dart';
...@@ -75,11 +76,11 @@ class ScanImagePlugn { ...@@ -75,11 +76,11 @@ class ScanImagePlugn {
} }
} }
static Future getIosImageData(MethodChannel channel, String path) async { static Future<Uint8List> getIosImageData(MethodChannel channel, String path) async {
return await channel.invokeMethod("GET_IOS_IMAGE_DATA", path); return await channel.invokeMethod("GET_IOS_IMAGE_DATA", path);
} }
static Future getIosVideoData(MethodChannel channel, String path) async { static Future<String> getIosVideoData(MethodChannel channel, String path) async {
return await channel.invokeMethod("GET_IOS_IMAGE_DATA", path); return await channel.invokeMethod("GET_IOS_IMAGE_DATA", path);
} }
......
import 'dart:async'; import 'dart:async';
import 'dart:core'; import 'dart:core';
import 'dart:typed_data';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
...@@ -49,11 +50,11 @@ class GengmeiFlutterPlugin { ...@@ -49,11 +50,11 @@ class GengmeiFlutterPlugin {
isVideo, path, realPath, folderName, during, _channel); isVideo, path, realPath, folderName, during, _channel);
} }
static Future getIosImageData(String path) async { static Future<Uint8List> getIosImageData(String path) async {
return await ScanImagePlugn.getIosImageData(_channel, path); return await ScanImagePlugn.getIosImageData(_channel, path);
} }
static Future getIosVideoData(String path) async { static Future<String> getIosVideoData(String path) async {
return await ScanImagePlugn.getIosVideoData(_channel, path); return await ScanImagePlugn.getIosVideoData(_channel, path);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment