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
21f5511c
Commit
21f5511c
authored
Nov 01, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coo
parent
732b57d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
25 deletions
+28
-25
workspace.xml
.idea/workspace.xml
+26
-23
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+2
-2
No files found.
.idea/workspace.xml
View file @
21f5511c
...
...
@@ -5,7 +5,10 @@
<option
name=
"TOOL_WINDOW_CONFIGURED_FILTER"
value=
"Show only selected application"
/>
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"5be6bbb5-7d6e-4540-a24f-d2b3bf78b3ba"
name=
"Default Changelist"
comment=
""
/>
<list
default=
"true"
id=
"5be6bbb5-7d6e-4540-a24f-d2b3bf78b3ba"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/.idea/workspace.xml"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
<ignored
path=
"$PROJECT_DIR$/.pub/"
/>
...
...
@@ -53,11 +56,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/lib/ScanImagePlugn.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
52
"
>
<caret
line=
"
19"
column=
"71"
selection-start-line=
"19"
selection-start-column=
"10"
selection-end-line=
"19"
selection-end-column=
"71
"
/>
<state
relative-caret-position=
"3
25
"
>
<caret
line=
"
49"
selection-start-line=
"49"
selection-end-line=
"52"
selection-end-column=
"3
"
/>
<folding>
<element
signature=
"e#45#86#0"
expanded=
"true"
/>
</folding>
...
...
@@ -65,11 +68,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
572
"
>
<caret
line=
"2
6"
column=
"41"
selection-start-line=
"26"
selection-start-column=
"41"
selection-end-line=
"26"
selection-end-column=
"41
"
/>
<state
relative-caret-position=
"
291
"
>
<caret
line=
"2
9"
column=
"35"
selection-start-line=
"29"
selection-start-column=
"21"
selection-end-line=
"29"
selection-end-column=
"35
"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
</folding>
...
...
@@ -101,8 +104,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
1506
"
>
<caret
line=
"5
44"
column=
"22"
selection-start-line=
"544"
selection-start-column=
"22"
selection-end-line=
"544
"
selection-end-column=
"22"
/>
<state
relative-caret-position=
"1
2672
"
>
<caret
line=
"5
97"
column=
"22"
selection-start-line=
"597"
selection-start-column=
"22"
selection-end-line=
"597
"
selection-end-column=
"22"
/>
</state>
</provider>
</entry>
...
...
@@ -174,17 +177,17 @@
<option
value=
"$PROJECT_DIR$/android/src/main/java/com/example/gengmei_flutter_plugin/ImagePlugin/repository/luban/Engine.kt"
/>
<option
value=
"$PROJECT_DIR$/lib/SharedPlugin.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/main.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/ScanImagePlugn.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/repository/AlbumRepository.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumModel.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumPage.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/ScanImagePlugn.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
/>
</list>
</option>
</component>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<option
name=
"x"
value=
"-
33
"
/>
<option
name=
"y"
value=
"2
3
"
/>
<option
name=
"x"
value=
"-
79
"
/>
<option
name=
"y"
value=
"2
4
"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"811"
/>
</component>
...
...
@@ -531,8 +534,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
1506
"
>
<caret
line=
"5
44"
column=
"22"
selection-start-line=
"544"
selection-start-column=
"22"
selection-end-line=
"544
"
selection-end-column=
"22"
/>
<state
relative-caret-position=
"1
2672
"
>
<caret
line=
"5
97"
column=
"22"
selection-start-line=
"597"
selection-start-column=
"22"
selection-end-line=
"597
"
selection-end-column=
"22"
/>
</state>
</provider>
</entry>
...
...
@@ -582,22 +585,22 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/
gengmei_flutter_plugi
n.dart"
>
<entry
file=
"file://$PROJECT_DIR$/lib/
ScanImagePlug
n.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
572
"
>
<caret
line=
"
26"
column=
"41"
selection-start-line=
"26"
selection-start-column=
"41"
selection-end-line=
"26"
selection-end-column=
"41
"
/>
<state
relative-caret-position=
"
325
"
>
<caret
line=
"
49"
selection-start-line=
"49"
selection-end-line=
"52"
selection-end-column=
"3
"
/>
<folding>
<element
signature=
"e#
0#20
#0"
expanded=
"true"
/>
<element
signature=
"e#
45#86
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/
ScanImagePlug
n.dart"
>
<entry
file=
"file://$PROJECT_DIR$/lib/
gengmei_flutter_plugi
n.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
352
"
>
<caret
line=
"
19"
column=
"71"
selection-start-line=
"19"
selection-start-column=
"10"
selection-end-line=
"19"
selection-end-column=
"71
"
/>
<state
relative-caret-position=
"
291
"
>
<caret
line=
"
29"
column=
"35"
selection-start-line=
"29"
selection-start-column=
"21"
selection-end-line=
"29"
selection-end-column=
"35
"
/>
<folding>
<element
signature=
"e#
45#86
#0"
expanded=
"true"
/>
<element
signature=
"e#
0#20
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
ios/Classes/GengmeiFlutterPlugin.m
View file @
21f5511c
...
...
@@ -367,7 +367,7 @@ NSString *cacheDirectory;
int
picWidth
=
[
assets
pixelWidth
];
int
picHeight
=
[
assets
pixelHeight
];
float
tempScareSize
=
1
;
float
limit
=
1
560
.
0
;
float
limit
=
1
024
.
0
;
float
max
=
MAX
(
picWidth
,
picHeight
);
if
(
max
>
limit
){
tempScareSize
=
limit
/
max
;
...
...
@@ -375,7 +375,7 @@ NSString *cacheDirectory;
CGSize
temp
=
CGSizeMake
(
picWidth
*
tempScareSize
,
picHeight
*
tempScareSize
);
[[
PHImageManager
defaultManager
]
requestImageForAsset
:
assets
targetSize
:
temp
contentMode
:
PHImageContentModeDefault
options
:
imageRequestOption
resultHandler
:^
(
UIImage
*
_Nullable
result
,
NSDictionary
*
_Nullable
info
)
{
@autoreleasepool
{
NSData
*
data
=
UIImageJPEGRepresentation
(
result
,
0
.
8
)
;
NSData
*
data
=
UIImageJPEGRepresentation
(
result
,
1
)
;
[
data
writeToFile
:
tempTake
atomically
:
YES
];
result
=
nil
;
data
=
nil
;
...
...
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