Browse Source

freeze v0.2.8

Taner Sener 6 years ago
parent
commit
81b0da68ce
4 changed files with 8 additions and 10 deletions
  1. 2 5
      example/lib/flutter_ffmpeg_example.dart
  2. 3 3
      example/pubspec.lock
  3. 2 1
      example/pubspec.yaml
  4. 1 1
      lib/flutter_ffmpeg.dart

+ 2 - 5
example/lib/flutter_ffmpeg_example.dart

@@ -171,8 +171,7 @@ class FlutterFFmpegTestAppState extends State<MainPage>
 
   void testRunCommand() {
     getLastReturnCode().then((rc) => print("Last rc: $rc"));
-    getLastCommandOutput().then((output) =>
-        debugPrint("Last command output: \"$output\"", wrapWidth: 1024));
+    getLastCommandOutput().then((output) => debugPrint("Last command output: \"$output\"", wrapWidth: 1024));
 
     print("Testing ParseArguments.");
 
@@ -305,9 +304,7 @@ class FlutterFFmpegTestAppState extends State<MainPage>
                     image3Path, fullVideoPath, ffmpegCodec, customOptions))
                 .then((rc) {
               if (rc == 0) {
-                getLastCommandOutput().then((output) => debugPrint(
-                    "Last command output: \"$output\"",
-                    wrapWidth: 1024));
+                getLastCommandOutput().then((output) => debugPrint("Last command output: \"$output\"", wrapWidth: 1024));
               }
             });
 

+ 3 - 3
example/pubspec.lock

@@ -72,9 +72,9 @@ packages:
   flutter_ffmpeg:
     dependency: "direct main"
     description:
-      name: flutter_ffmpeg
-      url: "https://pub.dartlang.org"
-    source: hosted
+      path: ".."
+      relative: true
+    source: path
     version: "0.2.8"
   flutter_test:
     dependency: "direct dev"

+ 2 - 1
example/pubspec.yaml

@@ -12,7 +12,8 @@ dependencies:
   cupertino_icons: ^0.1.2
   path: ^1.6.4
   path_provider: ^1.4.0
-  flutter_ffmpeg: ^0.2.8
+  flutter_ffmpeg:
+    path: ../
 
 dev_dependencies:
   flutter_test:

+ 1 - 1
lib/flutter_ffmpeg.dart

@@ -384,7 +384,7 @@ class FlutterFFmpeg {
   Future<String> registerNewFFmpegPipe() async {
     try {
       final Map<dynamic, dynamic> result =
-          await _methodChannel.invokeMethod('registerNewFFmpegPipe');
+      await _methodChannel.invokeMethod('registerNewFFmpegPipe');
       return result['pipe'];
     } on PlatformException catch (e) {
       print("Plugin error: ${e.message}");