Browse Source

format dart files

Taner Sener 6 years ago
parent
commit
62436644eb
2 changed files with 6 additions and 3 deletions
  1. 5 2
      example/lib/flutter_ffmpeg_example.dart
  2. 1 1
      lib/flutter_ffmpeg.dart

+ 5 - 2
example/lib/flutter_ffmpeg_example.dart

@@ -171,7 +171,8 @@ 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.");
 
@@ -304,7 +305,9 @@ 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));
               }
             });
 

+ 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}");