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
4785e81b
Commit
4785e81b
authored
Dec 23, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
b30a2a42
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
132 additions
and
86 deletions
+132
-86
workspace.xml
.idea/workspace.xml
+68
-72
GengmeiFlutterPlugin.kt
...om/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt
+24
-10
ImageRespository.kt
...flutter_plugin/ImagePlugin/repository/ImageRespository.kt
+19
-4
ScanImagePlugn.dart
lib/ScanImagePlugn.dart
+13
-0
SharedPlugin.dart
lib/SharedPlugin.dart
+2
-0
gengmei_flutter_plugin.dart
lib/gengmei_flutter_plugin.dart
+6
-0
No files found.
.idea/workspace.xml
View file @
4785e81b
...
...
@@ -7,19 +7,14 @@
<component
name=
"ChangeListManager"
>
<list
default=
"$ENABLE_FLUTTER_DESKTOP$"
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$/android/.idea/caches/build_file_checksums.ser"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/.idea/caches/build_file_checksums.ser"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/build.gradle"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/build.gradle"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/android/build.gradle"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/android/build.gradle"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/kotlin/com/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/kotlin/com/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/kotlin/com/example/gengmei_flutter_plugin/ImagePlugin/repository/ImageRespository.kt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/kotlin/com/example/gengmei_flutter_plugin/ImagePlugin/repository/ImageRespository.kt"
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"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/android/.idea/caches/build_file_checksums.ser"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/android/.idea/caches/build_file_checksums.ser"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/android/build.gradle"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/android/build.gradle"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/example/android/build.gradle"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/example/android/build.gradle"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/example/pubspec.lock"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/example/pubspec.lock"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/ios/Classes/GengmeiFlutterPlugin.m"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/ios/Classes/GengmeiFlutterPlugin.m"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/pubspec.lock"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/pubspec.lock"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/pubspec.lock"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/pubspec.lock"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/pubspec.lock"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/pubspec.lock"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/android/src/main/kotlin/com/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/android/src/main/kotlin/com/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/android/src/main/kotlin/com/example/gengmei_flutter_plugin/ImagePlugin/repository/ImageRespository.kt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/android/src/main/kotlin/com/example/gengmei_flutter_plugin/ImagePlugin/repository/ImageRespository.kt"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/ScanImagePlugn.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/ScanImagePlugn.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/SharedPlugin.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/SharedPlugin.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
...
...
@@ -42,8 +37,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/ScanImagePlugn.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
770
"
>
<caret
line=
"
38"
column=
"3"
selection-start-line=
"38"
selection-start-column=
"3"
selection-end-line=
"38"
selection-end-column=
"3
"
/>
<state
relative-caret-position=
"
277
"
>
<caret
line=
"
28"
selection-start-line=
"28"
selection-end-line=
"28
"
/>
<folding>
<element
signature=
"e#45#86#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
...
...
@@ -54,23 +49,23 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/SharedPlugin.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
30
"
>
<caret
line=
"1
8"
column=
"39"
selection-start-line=
"18"
selection-start-column=
"28"
selection-end-line=
"18"
selection-end-column=
"39
"
/>
<state
relative-caret-position=
"3
08
"
>
<caret
line=
"1
7"
selection-start-line=
"17"
selection-end-line=
"17
"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
$ENABLE_FLUTTER_DESKTOP$
"
>
<file
pinned=
"false"
current-in-tab=
"
false
"
>
<entry
file=
"file://$PROJECT_DIR$/android/build.gradle"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-587
"
>
<caret
line=
"
4"
column=
"32"
selection-start-line=
"4"
selection-start-column=
"32"
selection-end-line=
"4"
selection-end-column=
"32
"
/>
<state
relative-caret-position=
"
110
"
>
<caret
line=
"
5"
selection-start-line=
"5"
selection-end-line=
"6"
selection-end-column=
"35
"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/act/VideoActivity.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/act/VideoActivity.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"176"
>
<caret
line=
"15"
column=
"6"
selection-start-line=
"15"
selection-start-column=
"6"
selection-end-line=
"15"
selection-end-column=
"6"
/>
...
...
@@ -79,7 +74,7 @@
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/act/view/PinchImageView.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/act/view/PinchImageView.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"19"
column=
"6"
selection-start-line=
"19"
selection-start-column=
"6"
selection-end-line=
"19"
selection-end-column=
"6"
/>
...
...
@@ -110,11 +105,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
false
"
>
<file
pinned=
"false"
current-in-tab=
"
$ENABLE_FLUTTER_DESKTOP$
"
>
<entry
file=
"file://$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
814
"
>
<caret
line=
"
37"
column=
"57"
selection-start-line=
"37"
selection-start-column=
"57"
selection-end-line=
"37"
selection-end-column=
"57
"
/>
<state
relative-caret-position=
"
170
"
>
<caret
line=
"
42"
column=
"40"
selection-start-line=
"42"
selection-start-column=
"40"
selection-end-line=
"42"
selection-end-column=
"40
"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
...
...
@@ -125,7 +120,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumPage.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
4048
"
>
<state
relative-caret-position=
"
3916
"
>
<caret
line=
"187"
column=
"18"
selection-start-line=
"187"
selection-start-column=
"18"
selection-end-line=
"187"
selection-end-column=
"18"
/>
<folding>
<element
signature=
"e#45#62#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
...
...
@@ -191,26 +186,26 @@
<option
value=
"$PROJECT_DIR$/.gitignore"
/>
<option
value=
"$PROJECT_DIR$/android/src/main/java/com/example/gengmei_flutter_plugin/ImagePlugin/repository/ImageRespository.kt"
/>
<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/AlbumModel/repository/AlbumRepository.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/preview/AlbumPreviewModel.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/preview/AlbumPreviewPage.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/main.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumPage.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumModel.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/ScanImagePlugn.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
/>
<option
value=
"$PROJECT_DIR$/android/src/main/java/com/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt"
/>
<option
value=
"$PROJECT_DIR$/example/pubspec.yaml"
/>
<option
value=
"$PROJECT_DIR$/android/build.gradle"
/>
<option
value=
"$PROJECT_DIR$/lib/SharedPlugin.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=
"
53
"
/>
<option
name=
"y"
value=
"
86
"
/>
<option
name=
"x"
value=
"
-16
"
/>
<option
name=
"y"
value=
"
23
"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"81
2
"
/>
<option
name=
"height"
value=
"81
1
"
/>
</component>
<component
name=
"ProjectLevelVcsManager"
settingsEditedManually=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<component
name=
"ProjectView"
>
...
...
@@ -228,14 +223,14 @@
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
android
"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
lib
"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
<select
/>
</subPane>
</pane>
<pane
id=
"PackagesPane"
/>
<pane
id=
"AndroidView"
/>
<pane
id=
"PackagesPane"
/>
<pane
id=
"Scope"
/>
</panes>
</component>
...
...
@@ -283,7 +278,8 @@
<servers
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"2"
y=
"23"
width=
"1440"
height=
"814"
extended-state=
"6"
/>
<frame
x=
"1"
y=
"23"
width=
"1440"
height=
"811"
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$"
/>
...
...
@@ -300,7 +296,7 @@
<window_info
anchor=
"bottom"
id=
"Android Profiler"
order=
"3"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Logcat"
order=
"4"
weight=
"0.29639888"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"5"
/>
<window_info
active=
"$ENABLE_FLUTTER_DESKTOP$"
anchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.3
1717452
"
/>
<window_info
active=
"$ENABLE_FLUTTER_DESKTOP$"
anchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.3
2545203
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"7"
side_tool=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<window_info
anchor=
"bottom"
id=
"Flutter Performance"
order=
"8"
side_tool=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"9"
/>
...
...
@@ -353,35 +349,35 @@
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/Image/AlbumItem.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/ImagePlugin/repository/ImageRespository.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/ImagePlugin/repository/ImageRespository.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1276"
>
<caret
line=
"78"
column=
"45"
selection-start-line=
"78"
selection-start-column=
"45"
selection-end-line=
"78"
selection-end-column=
"45"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/ImagePlugin/repository/luban/Checker.java"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/ImagePlugin/repository/luban/Checker.java"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"88"
>
<caret
line=
"14"
column=
"12"
selection-start-line=
"14"
selection-start-column=
"12"
selection-end-line=
"14"
selection-end-column=
"12"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/result/ResultManager.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/result/ResultManager.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"814"
>
<caret
line=
"39"
column=
"13"
selection-start-line=
"39"
selection-start-column=
"4"
selection-end-line=
"39"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/ImagePlugin/repository/luban/Engine.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/ImagePlugin/repository/luban/Engine.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1606"
>
<caret
line=
"82"
column=
"9"
selection-start-line=
"82"
selection-start-column=
"9"
selection-end-line=
"82"
selection-end-column=
"9"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/sharedPrefernces/SharedManager.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/sharedPrefernces/SharedManager.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2068"
>
<caret
line=
"101"
column=
"21"
selection-start-line=
"101"
selection-start-column=
"8"
selection-end-line=
"101"
selection-end-column=
"21"
/>
...
...
@@ -538,45 +534,28 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"4048"
>
<caret
line=
"217"
column=
"20"
selection-start-line=
"217"
selection-start-column=
"20"
selection-end-line=
"217"
selection-end-column=
"20"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/act/PreviewActivity.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/act/PreviewActivity.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"286"
>
<caret
line=
"20"
column=
"25"
selection-start-line=
"20"
selection-start-column=
"25"
selection-end-line=
"20"
selection-end-column=
"25"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/ScanImagePlugn.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"770"
>
<caret
line=
"38"
column=
"3"
selection-start-line=
"38"
selection-start-column=
"3"
selection-end-line=
"38"
selection-end-column=
"3"
/>
<folding>
<element
signature=
"e#45#86#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/SharedPlugin.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"330"
>
<caret
line=
"18"
column=
"39"
selection-start-line=
"18"
selection-start-column=
"28"
selection-end-line=
"18"
selection-end-column=
"39"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/java/com/example/gengmei_flutter_plugin/act/VideoActivity.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/kotlin/com/example/gengmei_flutter_plugin/act/VideoActivity.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"176"
>
<caret
line=
"15"
column=
"6"
selection-start-line=
"15"
selection-start-column=
"6"
selection-end-line=
"15"
selection-end-column=
"6"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
java
/com/example/gengmei_flutter_plugin/act/view/PinchImageView.kt"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/
kotlin
/com/example/gengmei_flutter_plugin/act/view/PinchImageView.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"19"
column=
"6"
selection-start-line=
"19"
selection-start-column=
"6"
selection-end-line=
"19"
selection-end-column=
"6"
/>
...
...
@@ -600,30 +579,47 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
lib/gengmei_flutter_plugin
.dart"
>
<entry
file=
"file://$PROJECT_DIR$/
example/lib/AlbumModel/page/album/AlbumPage
.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
814
"
>
<caret
line=
"
37"
column=
"57"
selection-start-line=
"37"
selection-start-column=
"57"
selection-end-line=
"37"
selection-end-column=
"57
"
/>
<state
relative-caret-position=
"
3916
"
>
<caret
line=
"
187"
column=
"18"
selection-start-line=
"187"
selection-start-column=
"18"
selection-end-line=
"187"
selection-end-column=
"18
"
/>
<folding>
<element
signature=
"e#
0#20
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<element
signature=
"e#
45#62
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
example/lib/AlbumModel/page/album/AlbumPage.dart
"
>
<entry
file=
"file://$PROJECT_DIR$/
android/build.gradle
"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"4048"
>
<caret
line=
"187"
column=
"18"
selection-start-line=
"187"
selection-start-column=
"18"
selection-end-line=
"187"
selection-end-column=
"18"
/>
<state
relative-caret-position=
"110"
>
<caret
line=
"5"
selection-start-line=
"5"
selection-end-line=
"6"
selection-end-column=
"35"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/SharedPlugin.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"308"
>
<caret
line=
"17"
selection-start-line=
"17"
selection-end-line=
"17"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/ScanImagePlugn.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"277"
>
<caret
line=
"28"
selection-start-line=
"28"
selection-end-line=
"28"
/>
<folding>
<element
signature=
"e#45#
62
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<element
signature=
"e#45#
86
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
android/build.gradle
"
>
<entry
file=
"file://$PROJECT_DIR$/
lib/gengmei_flutter_plugin.dart
"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-587"
>
<caret
line=
"4"
column=
"32"
selection-start-line=
"4"
selection-start-column=
"32"
selection-end-line=
"4"
selection-end-column=
"32"
/>
<state
relative-caret-position=
"170"
>
<caret
line=
"42"
column=
"40"
selection-start-line=
"42"
selection-start-column=
"40"
selection-end-line=
"42"
selection-end-column=
"40"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
...
...
android/src/main/kotlin/com/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt
View file @
4785e81b
...
...
@@ -52,6 +52,7 @@ class GengmeiFlutterPlugin : MethodCallHandler {
var
premissionHandler
:
PermissionListener
?
=
null
var
nativeImage
:
File
?
=
null
const
val
IMAGE_PICKER
=
"scan_image_picker"
const
val
ADD_IMAGE_CACHE
=
"ADD_IMAGE_CACHE"
const
val
NATIVE_CAMERA
=
"native_camera"
const
val
QUIT_PAGE
=
"quit_page"
const
val
AI_CAMERA
=
"ai_camera"
...
...
@@ -128,11 +129,11 @@ class GengmeiFlutterPlugin : MethodCallHandler {
// true;
// }
registrar
.
addActivityResultListener
{
requestCode
,
resultCode
,
intent
->
Log
.
e
(
"lsy"
,
" LSY ACTIVITY RESULT ${nativeImage?.exists()} ${requestCode} "
)
Log
.
e
(
"lsy"
,
" LSY ACTIVITY RESULT ${nativeImage?.exists()} ${requestCode} "
)
when
(
requestCode
)
{
CAMERA_REQUEST_CODE
->
{
if
(
resultCode
==
RESULT_OK
)
{
android
.
util
.
Log
.
e
(
"lsy"
,
" RESULT OKKKKK "
)
android
.
util
.
Log
.
e
(
"lsy"
,
" RESULT OKKKKK "
)
if
(
nativeImage
!=
null
&&
nativeImage
!!
.
exists
())
{
ImageRespository
.
getInstance
().
scareImg
(
nativeImage
!!
.
absolutePath
).
subscribe
({
val
map
=
HashMap
<
String
,
Any
>()
...
...
@@ -140,7 +141,7 @@ class GengmeiFlutterPlugin : MethodCallHandler {
map
.
put
(
"path"
,
it
.
second
)
map
.
put
(
"isVideo"
,
"F"
)
map
.
put
(
"folderName"
,
"GengmeiAlbum"
)
android
.
util
.
Log
.
e
(
"lsy"
,
" RESULT MAPPP "
)
android
.
util
.
Log
.
e
(
"lsy"
,
" RESULT MAPPP "
)
// try {
// MediaStore.Images.Media.insertImage(resign.context().applicationContext.getContentResolver(),
...
...
@@ -199,9 +200,9 @@ class GengmeiFlutterPlugin : MethodCallHandler {
// intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(nativeImage));
// }
val
broad
=
Intent
(
"com.alpha.flutter.album"
)
broad
.
putExtra
(
"PATH"
,
nativeImage
!!
.
absolutePath
)
broad
.
putExtra
(
"providerString"
,
providerString
)
broad
.
putExtra
(
"CAMERA_REQUEST_CODE"
,
CAMERA_REQUEST_CODE
)
broad
.
putExtra
(
"PATH"
,
nativeImage
!!
.
absolutePath
)
broad
.
putExtra
(
"providerString"
,
providerString
)
broad
.
putExtra
(
"CAMERA_REQUEST_CODE"
,
CAMERA_REQUEST_CODE
)
resign
.
sendBroadcast
(
broad
)
// resign.activity().startActivityForResult(intent, CAMERA_REQUEST_CODE);
}
...
...
@@ -214,8 +215,21 @@ class GengmeiFlutterPlugin : MethodCallHandler {
val
result
=
resultKey
;
ScanImage
(
result
)
}
ADD_IMAGE_CACHE
->
{
val
result
=
resultKey
;
val
map
=
call
.
arguments
as
HashMap
<
String
,
String
>
ImageRespository
.
getInstance
().
addCacheItem
(
if
(
map
[
"isVideo"
]
==
"T"
)
true
else
false
,
map
[
"path"
]
!!
,
map
[
"realPath"
]
!!
,
map
[
"folderName"
]
!!
,
map
[
"during"
]
!!
.
toLong
()
)
ResultManager
.
getInstance
().
resultSuccess
(
result
,
true
)
}
NATIVE_CAMERA
->
{
gotoNativeCameraKey
=
resultKey
;
gotoNativeCameraKey
=
resultKey
;
gotoNativeCamera
(
call
.
argument
<
String
>(
"authority"
)
!!
)
}
SAVE_STRING_SHARED
->
{
...
...
@@ -327,7 +341,7 @@ class GengmeiFlutterPlugin : MethodCallHandler {
path
?.
run
{
val
intent
=
Intent
(
resign
,
VideoActivity
::
class
.
java
)
intent
.
putExtra
(
"PATH"
,
this
)
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
)
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
)
resign
.
startActivity
(
intent
)
}
}
...
...
@@ -337,7 +351,7 @@ class GengmeiFlutterPlugin : MethodCallHandler {
path
?.
run
{
val
intent
=
Intent
(
resign
,
PreviewActivity
::
class
.
java
)
intent
.
putExtra
(
"PATH"
,
this
)
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
)
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
)
resign
.
startActivity
(
intent
)
ResultManager
.
getInstance
().
resultSuccess
(
result
,
true
)
// ImageRespository.getInstance().getPreviewImg(resign.context().applicationContext,this, 800.0f).subscribe({
...
...
@@ -389,7 +403,7 @@ class GengmeiFlutterPlugin : MethodCallHandler {
@TargetApi
(
Build
.
VERSION_CODES
.
M
)
private
fun
checkPermission
(
listener
:
PermissionListener
)
{
premissionHandler
=
listener
premissionHandler
=
listener
listener
.
OK
()
// val activity = resign
// val writePremission = activity.checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)
...
...
android/src/main/kotlin/com/example/gengmei_flutter_plugin/ImagePlugin/repository/ImageRespository.kt
View file @
4785e81b
...
...
@@ -106,6 +106,21 @@ class ImageRespository {
}).
subscribeOn
(
Schedulers
.
io
()).
observeOn
(
AndroidSchedulers
.
mainThread
())
}
fun
addCacheItem
(
isVideo
:
Boolean
,
path
:
String
,
realPath
:
String
,
folderName
:
String
,
during
:
Long
)
{
val
itemMap
=
HashMap
<
String
,
Any
>()
itemMap
.
put
(
"folderName"
,
folderName
)
itemMap
.
put
(
"path"
,
path
)
itemMap
.
put
(
"realPath"
,
realPath
)
if
(
isVideo
)
{
itemMap
.
put
(
"isVideo"
,
"T"
)
itemMap
.
put
(
"during"
,
"${during}"
)
}
else
{
itemMap
.
put
(
"isVideo"
,
"F"
)
}
recordImageListMap
.
add
(
0
,
itemMap
)
}
fun
savePreviewImg
(
context
:
Context
,
listener
:
savePreviewListener
)
{
val
start
=
System
.
currentTimeMillis
();
val
needSize
=
recordImageListMap
.
size
;
...
...
@@ -119,7 +134,7 @@ class ImageRespository {
// if (it["realPath"] == null) {
// continue
// }
Log
.
e
(
"lsy"
,
"index ${index}"
)
Log
.
e
(
"lsy"
,
"index ${index}"
)
val
any
=
it
[
"path"
]
val
realPath
=
it
[
"realPath"
]
as
String
if
(
any
!=
null
&&
!
TextUtils
.
isEmpty
(
any
as
String
))
{
...
...
@@ -303,7 +318,7 @@ class ImageRespository {
// )
// .setName(getFileName(realPath)!!)
// .get(realPath);
it
[
"path"
]
=
MyUtil
.
scareImg
(
realPath
,
200f
,
fileDir
+
"/"
+
getFileName
(
realPath
)
!!
+
".png"
,
75
,
degree
)
it
[
"path"
]
=
MyUtil
.
scareImg
(
realPath
,
200f
,
fileDir
+
"/"
+
getFileName
(
realPath
)
!!
+
".png"
,
75
,
degree
)
// Log.e("lsy", "封面照片 ${get.absolutePath}");
}
}
...
...
@@ -331,7 +346,7 @@ class ImageRespository {
}
}
finalList
[
"IsGengmeiAlbumAllImages"
]
=
imageListMap
;
return
finalList
;
return
finalList
}
fun
getPreviewImg
(
context
:
Context
,
realPath
:
String
,
scareSize
:
Float
):
Observable
<
String
>
{
...
...
@@ -343,7 +358,7 @@ class ImageRespository {
// val path = Luban.with(context).setTargetDir(fileDir).quality(100)
// .setName(getFileName(realPath)!! + "_preview.png")
// .get(realPath);
val
path
=
MyUtil
.
scareImg
(
realPath
,
scareSize
,
copyPath
,
90
,
0
);
val
path
=
MyUtil
.
scareImg
(
realPath
,
scareSize
,
copyPath
,
90
,
0
);
it
.
onNext
(
path
)
}).
subscribeOn
(
Schedulers
.
io
()).
observeOn
(
AndroidSchedulers
.
mainThread
());
}
...
...
lib/ScanImagePlugn.dart
View file @
4785e81b
...
...
@@ -25,6 +25,8 @@ Map<String, List<ScanImageItem>> changData(Map images) {
return
newMap
;
}
const
String
ADD_IMAGE_CACHE
=
"ADD_IMAGE_CACHE"
;
class
ScanImagePlugn
{
static
Future
<
Map
<
String
,
List
<
ScanImageItem
>>>
scanImages
(
MethodChannel
channel
)
async
{
...
...
@@ -38,6 +40,17 @@ class ScanImagePlugn {
.
invokeMethod
(
"native_camera"
,
{
"authority"
:
authority
});
}
static
Future
<
bool
>
addAlbumItem
(
bool
isVideo
,
String
path
,
String
realPath
,
String
folderName
,
int
during
,
MethodChannel
channel
)
async
{
return
await
channel
.
invokeMethod
(
ADD_IMAGE_CACHE
,
{
"isVideo"
:
isVideo
?
"T"
:
"F"
,
"path"
:
path
,
"realPath"
:
realPath
,
"folderName"
:
folderName
,
"during"
:
"
${during}
"
});
}
static
Future
<
String
>
scareImg
(
MethodChannel
channel
,
String
path
,
int
scare
)
async
{
return
await
channel
...
...
lib/SharedPlugin.dart
View file @
4785e81b
...
...
@@ -31,6 +31,8 @@ class SharedPlugin {
.
invokeMethod
(
SAVE_INT_SHARED
,
{
"key"
:
key
,
"value"
:
value
});
}
static
Future
<
bool
>
saveDouble
(
String
key
,
double
value
,
MethodChannel
channel
)
async
{
return
await
channel
...
...
lib/gengmei_flutter_plugin.dart
View file @
4785e81b
...
...
@@ -39,6 +39,12 @@ class GengmeiFlutterPlugin {
return
await
ScanImagePlugn
.
playAlbumVideo
(
_channel
,
path
);
}
static
Future
<
bool
>
addAlbumItem
(
bool
isVideo
,
String
path
,
String
realPath
,
String
folderName
,
int
during
)
async
{
return
await
ScanImagePlugn
.
addAlbumItem
(
isVideo
,
path
,
realPath
,
folderName
,
during
,
_channel
);
}
static
Future
<
bool
>
quitPage
()
async
{
return
await
ScanImagePlugn
.
quitPage
(
_channel
);
}
...
...
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