forked from Nikolaiko/DrawOnImagePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
42 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
# | ||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. | ||
# Run `pod lib lint draw_on_image_plugin.podspec` to validate before publishing. | ||
# | ||
Pod::Spec.new do |s| | ||
s.name = 'draw_on_image_plugin' | ||
s.version = '0.0.1' | ||
s.version = '1.0.0' | ||
s.summary = 'A new flutter plugin project.' | ||
s.description = <<-DESC | ||
A new flutter plugin project. | ||
DESC | ||
s.homepage = 'http://example.com' | ||
s.license = { :file => '../LICENSE' } | ||
s.author = { 'Your Company' => '[email protected]' } | ||
s.author = { 'Nikolai' => '[email protected]' } | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
s.dependency 'Flutter' | ||
s.dependency 'path_provider' | ||
s.platform = :ios, '8.0' | ||
|
||
# Flutter.framework does not contain a i386 slice. | ||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } | ||
s.swift_version = '5.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
import 'dart:async'; | ||
import 'dart:io'; | ||
|
||
import 'package:draw_on_image_plugin/codecs/draw_image_data_method_codec.dart'; | ||
import 'package:draw_on_image_plugin/consts/name_constst.dart'; | ||
import 'package:draw_on_image_plugin/model/write_image_data.dart'; | ||
import 'package:flutter/services.dart'; | ||
import 'package:path_provider/path_provider.dart'; | ||
|
||
class DrawOnImagePlugin { | ||
static MethodChannel _channel = | ||
MethodChannel(channelName, DrawImageDataMethodCodec()); | ||
|
||
const DrawOnImagePlugin(); | ||
|
||
Future<String> writeTextOnImage(WriteImageData data) async { | ||
String fileName = await _channel.invokeMethod(drawMethodName, data); | ||
Directory dir = await getApplicationDocumentsDirectory(); | ||
return "${dir.path}/$fileName"; | ||
} | ||
} | ||
export 'src/draw_on_image.dart'; | ||
export 'src/model/write_image_data.dart'; | ||
export 'src/consts/default_values_consts.dart'; |
4 changes: 2 additions & 2 deletions
4
...codecs/draw_image_data_message_codec.dart → ...codecs/draw_image_data_message_codec.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
lib/codecs/draw_image_data_method_codec.dart → .../codecs/draw_image_data_method_codec.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'dart:async'; | ||
import 'dart:io'; | ||
|
||
import 'package:draw_on_image_plugin/src/codecs/draw_image_data_method_codec.dart'; | ||
import 'package:draw_on_image_plugin/src/consts/name_constst.dart'; | ||
import 'package:draw_on_image_plugin/src/model/write_image_data.dart'; | ||
import 'package:flutter/services.dart'; | ||
import 'package:path_provider/path_provider.dart'; | ||
|
||
class DrawOnImage { | ||
static MethodChannel _channel = | ||
MethodChannel(channelName, DrawImageDataMethodCodec()); | ||
|
||
const DrawOnImage(); | ||
|
||
Future<String> writeTextOnImage(WriteImageData data) async { | ||
String fileName = await _channel.invokeMethod(drawMethodName, data); | ||
Directory dir = await getApplicationDocumentsDirectory(); | ||
return "${dir.path}/$fileName"; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
lib/model/write_image_data.dart → lib/src/model/write_image_data.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters