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
f663c2bf
Commit
f663c2bf
authored
Jan 10, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c
parent
a7d654d1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
workspace.xml
.idea/workspace.xml
+6
-7
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+2
-2
No files found.
.idea/workspace.xml
View file @
f663c2bf
...
...
@@ -6,9 +6,7 @@
<option
name=
"TOOL_WINDOW_CONFIGURED_FILTER"
value=
"Show only selected application"
/>
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"$ENABLE_FLUTTER_DESKTOP$"
id=
"5be6bbb5-7d6e-4540-a24f-d2b3bf78b3ba"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
afterDir=
"false"
/>
</list>
<list
default=
"$ENABLE_FLUTTER_DESKTOP$"
id=
"5be6bbb5-7d6e-4540-a24f-d2b3bf78b3ba"
name=
"Default Changelist"
comment=
""
/>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
<ignored
path=
"$PROJECT_DIR$/.pub/"
/>
...
...
@@ -52,8 +50,8 @@
<file
pinned=
"false"
current-in-tab=
"$ENABLE_FLUTTER_DESKTOP$"
>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
6222
"
>
<caret
line=
"
527"
column=
"73"
selection-start-line=
"527"
selection-start-column=
"73"
selection-end-line=
"527"
selection-end-column=
"73
"
/>
<state
relative-caret-position=
"
150
"
>
<caret
line=
"
251"
column=
"22"
lean-forward=
"$ENABLE_FLUTTER_DESKTOP$"
selection-start-line=
"251"
selection-start-column=
"22"
selection-end-line=
"251"
selection-end-column=
"22
"
/>
</state>
</provider>
</entry>
...
...
@@ -282,6 +280,7 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-7"
y=
"30"
width=
"1440"
height=
"825"
extended-state=
"6"
/>
<editor
active=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<layout>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.19742489"
/>
<window_info
id=
"Captures"
order=
"1"
side_tool=
"$ENABLE_FLUTTER_DESKTOP$"
/>
...
...
@@ -623,8 +622,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
6222
"
>
<caret
line=
"
527"
column=
"73"
selection-start-line=
"527"
selection-start-column=
"73"
selection-end-line=
"527"
selection-end-column=
"73
"
/>
<state
relative-caret-position=
"
150
"
>
<caret
line=
"
251"
column=
"22"
lean-forward=
"$ENABLE_FLUTTER_DESKTOP$"
selection-start-line=
"251"
selection-start-column=
"22"
selection-end-line=
"251"
selection-end-column=
"22
"
/>
</state>
</provider>
</entry>
...
...
ios/Classes/GengmeiFlutterPlugin.m
View file @
f663c2bf
...
...
@@ -530,8 +530,8 @@ PHImageRequestOptions *baseImageRequestOption;
int
picHeight
=
[
assets
pixelHeight
];
float
tempScareSize
=
1
;
int
max
=
MAX
(
picWidth
,
picHeight
);
if
(
max
>
1
96
0
){
tempScareSize
=
1
96
0
/
max
;
if
(
max
>
1
08
0
){
tempScareSize
=
1
08
0
/
max
;
}
CGSize
temp
=
CGSizeMake
(
picWidth
*
tempScareSize
,
picHeight
*
tempScareSize
);
[[
PHImageManager
defaultManager
]
requestImageForAsset
:
assets
targetSize
:
temp
contentMode
:
PHImageContentModeDefault
options
:
baseImageRequestOption
resultHandler
:^
(
UIImage
*
_Nullable
result
,
NSDictionary
*
_Nullable
info
)
{
...
...
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