Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flutter_plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林生雨
flutter_plugin
Commits
f7e2923f
Commit
f7e2923f
authored
Jan 08, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
119c7c10
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
workspace.xml
.idea/workspace.xml
+3
-3
ScanImagePlugn.dart
lib/ScanImagePlugn.dart
+3
-2
gengmei_flutter_plugin.dart
lib/gengmei_flutter_plugin.dart
+3
-2
No files found.
.idea/workspace.xml
View file @
f7e2923f
...
@@ -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>
...
...
lib/ScanImagePlugn.dart
View file @
f7e2923f
...
@@ -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
);
}
}
...
...
lib/gengmei_flutter_plugin.dart
View file @
f7e2923f
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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment