├── ios ├── Assets │ └── .gitkeep ├── Classes │ ├── FlutterVideoEditorPlugin.h │ ├── SwiftFlutterVideoEditorPlugin.swift │ └── FlutterVideoEditorPlugin.m ├── .gitignore └── flutter_video_editor.podspec ├── res └── values │ └── strings_en.arb ├── LICENSE ├── CHANGELOG.md ├── android ├── settings.gradle ├── .gitignore ├── gradle.properties ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── kotlin │ │ └── com │ │ └── andylove │ │ └── flutter_video_editor │ │ └── FlutterVideoEditorPlugin.kt ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── build.gradle ├── example ├── ios │ ├── Runner │ │ ├── Runner-Bridging-Header.h │ │ ├── Assets.xcassets │ │ │ ├── LaunchImage.imageset │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ ├── README.md │ │ │ │ └── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ │ └── Contents.json │ │ ├── AppDelegate.swift │ │ ├── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ │ └── Info.plist │ ├── Flutter │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── AppFrameworkInfo.plist │ ├── Runner.xcodeproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ └── project.pbxproj │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── .gitignore │ ├── Podfile.lock │ └── Podfile ├── android │ ├── gradle.properties │ ├── .gitignore │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values │ │ │ │ │ │ └── styles.xml │ │ │ │ │ └── drawable │ │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── kotlin │ │ │ │ │ └── com │ │ │ │ │ │ └── andylove │ │ │ │ │ │ └── flutter_video_editor_example │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ └── build.gradle ├── .metadata ├── README.md ├── .gitignore ├── test │ └── widget_test.dart ├── pubspec.yaml ├── lib │ └── main.dart └── pubspec.lock ├── .gitignore ├── .idea ├── misc.xml ├── vcs.xml ├── libraries │ ├── Flutter_for_Android.xml │ ├── Flutter_Plugins.xml │ └── Dart_SDK.xml ├── runConfigurations │ └── example_lib_main_dart.xml ├── modules.xml ├── codeStyles │ └── Project.xml └── workspace.xml ├── .metadata ├── README.md ├── flutter_video_editor.iml ├── pubspec.yaml ├── lib ├── ffmpeg_utils.dart ├── generated │ └── i18n.dart ├── video_player.dart ├── video_edit_frame_show_scroll.dart └── video_edit_frame_show.dart └── pubspec.lock /ios/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /res/values/strings_en.arb: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | * TODO: Describe initial release. 4 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'flutter_video_editor' 2 | -------------------------------------------------------------------------------- /example/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | 7 | build/ 8 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Classes/FlutterVideoEditorPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface FlutterVideoEditorPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /example/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andylove1314/flutter_video_editor/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 6 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Flutter_for_Android.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations/example_lib_main_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 0b8abb4724aa590dd0f429683339b1e045a1594d 8 | channel: stable 9 | 10 | project_type: plugin 11 | -------------------------------------------------------------------------------- /example/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 0b8abb4724aa590dd0f429683339b1e045a1594d 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/android/app/src/main/kotlin/com/andylove/flutter_video_editor_example/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.andylove.flutter_video_editor_example 2 | 3 | import androidx.annotation.NonNull; 4 | import io.flutter.embedding.android.FlutterActivity 5 | import io.flutter.embedding.engine.FlutterEngine 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) { 10 | GeneratedPluginRegistrant.registerWith(flutterEngine); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/flutter_export_environment.sh -------------------------------------------------------------------------------- /ios/Classes/SwiftFlutterVideoEditorPlugin.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | 4 | public class SwiftFlutterVideoEditorPlugin: NSObject, FlutterPlugin { 5 | public static func register(with registrar: FlutterPluginRegistrar) { 6 | let channel = FlutterMethodChannel(name: "flutter_video_editor", binaryMessenger: registrar.messenger()) 7 | let instance = SwiftFlutterVideoEditorPlugin() 8 | registrar.addMethodCallDelegate(instance, channel: channel) 9 | } 10 | 11 | public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { 12 | result("iOS " + UIDevice.current.systemVersion) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # flutter_video_editor_example 2 | 3 | Demonstrates how to use the flutter_video_editor plugin. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /example/ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Classes/FlutterVideoEditorPlugin.m: -------------------------------------------------------------------------------- 1 | #import "FlutterVideoEditorPlugin.h" 2 | #if __has_include() 3 | #import 4 | #else 5 | // Support project import fallback if the generated compatibility header 6 | // is not copied when this plugin is created as a library. 7 | // https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816 8 | #import "flutter_video_editor-Swift.h" 9 | #endif 10 | 11 | @implementation FlutterVideoEditorPlugin 12 | + (void)registerWithRegistrar:(NSObject*)registrar { 13 | [SwiftFlutterVideoEditorPlugin registerWithRegistrar:registrar]; 14 | } 15 | @end 16 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .flutter-plugins-dependencies 28 | .packages 29 | .pub-cache/ 30 | .pub/ 31 | /build/ 32 | 33 | # Web related 34 | lib/generated_plugin_registrant.dart 35 | 36 | # Exceptions to above rules. 37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 38 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter_video_editor 2 | 3 | local video edit (only support video cut, video dur, video frames) 4 | 5 | main project: 6 | ios target = 9.3 and remove project's armv7 7 | android:minsdk:16 ffmpeg implementation:'com.arthenica:mobile-ffmpeg-https:4.3.1.LTS',(需要手动修改ffmpeg插件里面的依赖) 8 | 9 | ## Getting Started 10 | 11 | This project is a starting point for a Flutter 12 | [plug-in package](https://flutter.dev/developing-packages/), 13 | a specialized package that includes platform-specific implementation code for 14 | Android and/or iOS. 15 | 16 | For help getting started with Flutter, view our 17 | [online documentation](https://flutter.dev/docs), which offers tutorials, 18 | samples, guidance on mobile development, and a full API reference. 19 | 20 | Thanks: 21 | ffmpeg、videoplayer 22 | 23 | ###想要更多的音视频编辑需求,请膜拜ffmpeg官网提供的各种命令行,谢谢! -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:flutter_video_editor_example/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Verify Platform version', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that platform version is retrieved. 19 | expect( 20 | find.byWidgetPredicate( 21 | (Widget widget) => widget is Text && 22 | widget.data.startsWith('Running on:'), 23 | ), 24 | findsOneWidget, 25 | ); 26 | }); 27 | } 28 | -------------------------------------------------------------------------------- /ios/flutter_video_editor.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. 3 | # Run `pod lib lint flutter_video_editor.podspec' to validate before publishing. 4 | # 5 | Pod::Spec.new do |s| 6 | s.name = 'flutter_video_editor' 7 | s.version = '0.0.1' 8 | s.summary = 'local video edit (only support video cut)' 9 | s.description = <<-DESC 10 | local video edit (only support video cut) 11 | DESC 12 | s.homepage = 'http://example.com' 13 | s.license = { :file => '../LICENSE' } 14 | s.author = { 'Your Company' => 'email@example.com' } 15 | s.source = { :path => '.' } 16 | s.source_files = 'Classes/**/*' 17 | s.dependency 'Flutter' 18 | s.platform = :ios, '8.0' 19 | 20 | # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported. 21 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } 22 | s.swift_version = '5.0' 23 | end 24 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | group 'com.andylove.flutter_video_editor' 2 | version '1.0-SNAPSHOT' 3 | 4 | buildscript { 5 | ext.kotlin_version = '1.3.50' 6 | repositories { 7 | google() 8 | jcenter() 9 | } 10 | 11 | dependencies { 12 | classpath 'com.android.tools.build:gradle:3.5.0' 13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 14 | } 15 | } 16 | 17 | rootProject.allprojects { 18 | repositories { 19 | google() 20 | jcenter() 21 | } 22 | } 23 | 24 | apply plugin: 'com.android.library' 25 | apply plugin: 'kotlin-android' 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | sourceSets { 31 | main.java.srcDirs += 'src/main/kotlin' 32 | } 33 | defaultConfig { 34 | minSdkVersion 16 35 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 36 | } 37 | lintOptions { 38 | disable 'InvalidPackage' 39 | } 40 | } 41 | 42 | dependencies { 43 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 44 | } 45 | -------------------------------------------------------------------------------- /flutter_video_editor.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/libraries/Flutter_Plugins.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Dart_SDK.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSPhotoLibraryUsageDescription 6 | 相册权限 7 | NSPhotoLibraryAddUsageDescription 8 | 相册权限 9 | LSVisibleInClassic 10 | 11 | NSPrefPaneIconFile 12 | 13 | NSCameraUsageDescription 14 | 相机权限 15 | CFBundleDevelopmentRegion 16 | $(DEVELOPMENT_LANGUAGE) 17 | CFBundleExecutable 18 | $(EXECUTABLE_NAME) 19 | CFBundleIdentifier 20 | $(PRODUCT_BUNDLE_IDENTIFIER) 21 | CFBundleInfoDictionaryVersion 22 | 6.0 23 | CFBundleName 24 | flutter_video_editor_example 25 | CFBundlePackageType 26 | APPL 27 | CFBundleShortVersionString 28 | $(FLUTTER_BUILD_NAME) 29 | CFBundleSignature 30 | ???? 31 | CFBundleVersion 32 | $(FLUTTER_BUILD_NUMBER) 33 | LSRequiresIPhoneOS 34 | 35 | UILaunchStoryboardName 36 | LaunchScreen 37 | UIMainStoryboardFile 38 | Main 39 | UISupportedInterfaceOrientations 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationLandscapeLeft 43 | UIInterfaceOrientationLandscapeRight 44 | 45 | UISupportedInterfaceOrientations~ipad 46 | 47 | UIInterfaceOrientationPortrait 48 | UIInterfaceOrientationPortraitUpsideDown 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /android/src/main/kotlin/com/andylove/flutter_video_editor/FlutterVideoEditorPlugin.kt: -------------------------------------------------------------------------------- 1 | package com.andylove.flutter_video_editor 2 | 3 | import androidx.annotation.NonNull; 4 | import io.flutter.embedding.engine.plugins.FlutterPlugin 5 | import io.flutter.plugin.common.MethodCall 6 | import io.flutter.plugin.common.MethodChannel 7 | import io.flutter.plugin.common.MethodChannel.MethodCallHandler 8 | import io.flutter.plugin.common.MethodChannel.Result 9 | import io.flutter.plugin.common.PluginRegistry.Registrar 10 | 11 | /** FlutterVideoEditorPlugin */ 12 | public class FlutterVideoEditorPlugin: FlutterPlugin, MethodCallHandler { 13 | override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) { 14 | val channel = MethodChannel(flutterPluginBinding.getFlutterEngine().getDartExecutor(), "flutter_video_editor") 15 | channel.setMethodCallHandler(FlutterVideoEditorPlugin()); 16 | } 17 | 18 | // This static function is optional and equivalent to onAttachedToEngine. It supports the old 19 | // pre-Flutter-1.12 Android projects. You are encouraged to continue supporting 20 | // plugin registration via this function while apps migrate to use the new Android APIs 21 | // post-flutter-1.12 via https://flutter.dev/go/android-project-migration. 22 | // 23 | // It is encouraged to share logic between onAttachedToEngine and registerWith to keep 24 | // them functionally equivalent. Only one of onAttachedToEngine or registerWith will be called 25 | // depending on the user's project. onAttachedToEngine or registerWith must both be defined 26 | // in the same class. 27 | companion object { 28 | @JvmStatic 29 | fun registerWith(registrar: Registrar) { 30 | val channel = MethodChannel(registrar.messenger(), "flutter_video_editor") 31 | channel.setMethodCallHandler(FlutterVideoEditorPlugin()) 32 | } 33 | } 34 | 35 | override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) { 36 | if (call.method == "getPlatformVersion") { 37 | result.success("Android ${android.os.Build.VERSION.RELEASE}") 38 | } else { 39 | result.notImplemented() 40 | } 41 | } 42 | 43 | override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) { 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_video_editor_example 2 | description: Demonstrates how to use the flutter_video_editor plugin. 3 | publish_to: 'none' 4 | version: 0.0.1+1 5 | environment: 6 | sdk: ">=2.1.0 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | 12 | # The following adds the Cupertino Icons font to your application. 13 | # Use with the CupertinoIcons class for iOS style icons. 14 | cupertino_icons: ^0.1.2 15 | 16 | #video,image选择 17 | image_picker: ^0.6.3 18 | chewie: 0.9.7 19 | 20 | dev_dependencies: 21 | flutter_test: 22 | sdk: flutter 23 | 24 | flutter_video_editor: 25 | path: ../ 26 | 27 | # For information on the generic Dart part of this file, see the 28 | # following page: https://dart.dev/tools/pub/pubspec 29 | 30 | # The following section is specific to Flutter. 31 | flutter: 32 | 33 | # The following line ensures that the Material Icons font is 34 | # included with your application, so that you can use the icons in 35 | # the material Icons class. 36 | uses-material-design: true 37 | 38 | # To add assets to your application, add an assets section, like this: 39 | # assets: 40 | # - images/a_dot_burr.jpeg 41 | # - images/a_dot_ham.jpeg 42 | 43 | # An image asset can refer to one or more resolution-specific "variants", see 44 | # https://flutter.dev/assets-and-images/#resolution-aware. 45 | 46 | # For details regarding adding assets from package dependencies, see 47 | # https://flutter.dev/assets-and-images/#from-packages 48 | 49 | # To add custom fonts to your application, add a fonts section here, 50 | # in this "flutter" section. Each entry in this list should have a 51 | # "family" key with the font family name, and a "fonts" key with a 52 | # list giving the asset and other descriptors for the font. For 53 | # example: 54 | # fonts: 55 | # - family: Schyler 56 | # fonts: 57 | # - asset: fonts/Schyler-Regular.ttf 58 | # - asset: fonts/Schyler-Italic.ttf 59 | # style: italic 60 | # - family: Trajan Pro 61 | # fonts: 62 | # - asset: fonts/TrajanPro.ttf 63 | # - asset: fonts/TrajanPro_Bold.ttf 64 | # weight: 700 65 | # 66 | # For details regarding fonts from package dependencies, 67 | # see https://flutter.dev/custom-fonts/#from-packages 68 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.andylove.flutter_video_editor_example" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'androidx.test:runner:1.1.1' 66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 67 | } 68 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_video_editor 2 | description: local video edit (only support video cut, video dur, video frames) 3 | version: 0.0.1+1 4 | author: Andylove 5 | homepage: https://github.com/Andylove1314/flutter_video_editor.git 6 | 7 | environment: 8 | sdk: ">=2.1.0 <3.0.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | 14 | #ffmpeg 15 | flutter_ffmpeg: ^0.2.10 16 | #path_provider 17 | path_provider: 0.5.0+1 18 | #video player 19 | video_player: ^0.10.2+5 20 | chewie: 0.9.7 21 | 22 | #video,image选择 23 | image_picker: ^0.6.3 24 | 25 | dev_dependencies: 26 | flutter_test: 27 | sdk: flutter 28 | 29 | # For information on the generic Dart part of this file, see the 30 | # following page: https://dart.dev/tools/pub/pubspec 31 | 32 | # The following section is specific to Flutter. 33 | flutter: 34 | # This section identifies this Flutter project as a plugin project. 35 | # The androidPackage and pluginClass identifiers should not ordinarily 36 | # be modified. They are used by the tooling to maintain consistency when 37 | # adding or updating assets for this project. 38 | plugin: 39 | androidPackage: com.andylove.flutter_video_editor 40 | pluginClass: FlutterVideoEditorPlugin 41 | 42 | # To add assets to your plugin package, add an assets section, like this: 43 | # assets: 44 | # - images/a_dot_burr.jpeg 45 | # - images/a_dot_ham.jpeg 46 | # 47 | # For details regarding assets in packages, see 48 | # https://flutter.dev/assets-and-images/#from-packages 49 | # 50 | # An image asset can refer to one or more resolution-specific "variants", see 51 | # https://flutter.dev/assets-and-images/#resolution-aware. 52 | 53 | # To add custom fonts to your plugin package, add a fonts section here, 54 | # in this "flutter" section. Each entry in this list should have a 55 | # "family" key with the font family name, and a "fonts" key with a 56 | # list giving the asset and other descriptors for the font. For 57 | # example: 58 | # fonts: 59 | # - family: Schyler 60 | # fonts: 61 | # - asset: fonts/Schyler-Regular.ttf 62 | # - asset: fonts/Schyler-Italic.ttf 63 | # style: italic 64 | # - family: Trajan Pro 65 | # fonts: 66 | # - asset: fonts/TrajanPro.ttf 67 | # - asset: fonts/TrajanPro_Bold.ttf 68 | # weight: 700 69 | # 70 | # For details regarding fonts in packages, see 71 | # https://flutter.dev/custom-fonts/#from-packages -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - flutter_ffmpeg/full (0.2.10): 4 | - Flutter 5 | - mobile-ffmpeg-full (= 4.3.1) 6 | - flutter_plugin_android_lifecycle (0.0.1): 7 | - Flutter 8 | - flutter_video_editor (0.0.1): 9 | - Flutter 10 | - image_picker (0.0.1): 11 | - Flutter 12 | - mobile-ffmpeg-full (4.3.1) 13 | - path_provider (0.0.1): 14 | - Flutter 15 | - screen (0.0.1): 16 | - Flutter 17 | - video_player (0.0.1): 18 | - Flutter 19 | - video_player_web (0.0.1): 20 | - Flutter 21 | 22 | DEPENDENCIES: 23 | - Flutter (from `Flutter`) 24 | - flutter_ffmpeg/full (from `.symlinks/plugins/flutter_ffmpeg/ios`) 25 | - flutter_plugin_android_lifecycle (from `.symlinks/plugins/flutter_plugin_android_lifecycle/ios`) 26 | - flutter_video_editor (from `.symlinks/plugins/flutter_video_editor/ios`) 27 | - image_picker (from `.symlinks/plugins/image_picker/ios`) 28 | - path_provider (from `.symlinks/plugins/path_provider/ios`) 29 | - screen (from `.symlinks/plugins/screen/ios`) 30 | - video_player (from `.symlinks/plugins/video_player/ios`) 31 | - video_player_web (from `.symlinks/plugins/video_player_web/ios`) 32 | 33 | SPEC REPOS: 34 | trunk: 35 | - mobile-ffmpeg-full 36 | 37 | EXTERNAL SOURCES: 38 | Flutter: 39 | :path: Flutter 40 | flutter_ffmpeg: 41 | :path: ".symlinks/plugins/flutter_ffmpeg/ios" 42 | flutter_plugin_android_lifecycle: 43 | :path: ".symlinks/plugins/flutter_plugin_android_lifecycle/ios" 44 | flutter_video_editor: 45 | :path: ".symlinks/plugins/flutter_video_editor/ios" 46 | image_picker: 47 | :path: ".symlinks/plugins/image_picker/ios" 48 | path_provider: 49 | :path: ".symlinks/plugins/path_provider/ios" 50 | screen: 51 | :path: ".symlinks/plugins/screen/ios" 52 | video_player: 53 | :path: ".symlinks/plugins/video_player/ios" 54 | video_player_web: 55 | :path: ".symlinks/plugins/video_player_web/ios" 56 | 57 | SPEC CHECKSUMS: 58 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec 59 | flutter_ffmpeg: cf0a6941ef67e88248c998cc3e34f8acb0b4e454 60 | flutter_plugin_android_lifecycle: 47de533a02850f070f5696a623995e93eddcdb9b 61 | flutter_video_editor: c0b36bdf1aed8cbd52c8bb5ae59d19a306b658f4 62 | image_picker: e3eacd46b94694dde7cf2705955cece853aa1a8f 63 | mobile-ffmpeg-full: 0da7d44a6f9d5573daec359dafa7537f4682278f 64 | path_provider: f96fff6166a8867510d2c25fdcc346327cc4b259 65 | screen: abd91ca7bf3426e1cc3646d27e9b2358d6bf07b0 66 | video_player: 69c5f029fac4ffe4fc8a85ea7f7b793709661549 67 | video_player_web: da8cadb8274ed4f8dbee8d7171b420dedd437ce7 68 | 69 | PODFILE CHECKSUM: a5242647133ba53bd5d8b3c956fa47c2e096ae38 70 | 71 | COCOAPODS: 1.9.0.beta.2 72 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/ffmpeg_utils.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'dart:io'; 3 | 4 | import 'package:flutter_ffmpeg/flutter_ffmpeg.dart'; 5 | import 'package:path_provider/path_provider.dart'; 6 | 7 | FlutterFFmpeg _flutterFFmpeg; 8 | FlutterFFprobe _probe; 9 | String _path; 10 | 11 | ///初始化ffmpeg 12 | void initFFmpegWrap() async{ 13 | if(_flutterFFmpeg == null){ 14 | _flutterFFmpeg = new FlutterFFmpeg(); 15 | _probe = new FlutterFFprobe(); 16 | }else{ 17 | return; 18 | } 19 | try{ 20 | Directory extDir = await getApplicationDocumentsDirectory(); 21 | String dirPath = '${extDir.path}/Pictures/videoedit'; 22 | Directory sonDir = Directory(dirPath); 23 | bool exist = await sonDir.exists(); 24 | if (!exist) { 25 | await sonDir.create(recursive: true); 26 | } 27 | _path = sonDir.path; 28 | }catch(e){ 29 | print('ffmpeg create dir:$e'); 30 | } 31 | } 32 | 33 | ///获取视频时长(毫秒) 34 | Future getVideoDuration(String pathInput) async{ 35 | if(_flutterFFmpeg == null){ 36 | print('Please init FFmpegWrap first.'); 37 | return null; 38 | } 39 | var videoInfo = await _probe.getMediaInformation(pathInput); 40 | return videoInfo['duration']; 41 | } 42 | 43 | ///获取视频缩略图 44 | Future getVideoFrame(pathInput, {imgSize='352x240', quality=100}) async{ 45 | var now = DateTime.now(); 46 | var timeStamp = now.millisecondsSinceEpoch; 47 | String pathOutput = '$_path/thumbnail$timeStamp.jpg'; 48 | quality = (100 - quality)*0.01*30; 49 | quality = (quality < 1)? 1:quality; 50 | int rc = await _flutterFFmpeg.execute('-i $pathInput -y -frames:v 1 -f image2 -s $imgSize -q:v $quality $pathOutput '); 51 | if(rc == 0){ 52 | return pathOutput; 53 | }else{ 54 | return '-1'; 55 | } 56 | } 57 | 58 | ///剪切视频(规则可以通过命令行自定义) 59 | Future cuteVideo( String pathInput, var startSec, var dur) async { 60 | if(_flutterFFmpeg == null){ 61 | print('Please init FFmpegWrap first.'); 62 | return null; 63 | } 64 | //-ss 00:00:05 65 | if(startSec < 0)startSec = 0; 66 | if(dur< 1)dur = 1; 67 | var tempStrAry = pathInput.split('.'); 68 | var fileType = tempStrAry[tempStrAry.length-1]; 69 | String pathOutput = '$_path/curVideo.$fileType'; 70 | // await _flutterFFmpeg.execute("-i $pathInput -y -ss $startSec -t $dur -codec copy $pathOutput"); 71 | await _flutterFFmpeg.execute(" -ss $startSec -i $pathInput -y -codec copy -t $dur $pathOutput"); 72 | 73 | return pathOutput; 74 | 75 | } 76 | 77 | ///获取视频帧数组(规则可以通过命令行自定义) 78 | void getVideoFrames(pathInput, totalTime, count, callback, {imgSize}){ 79 | if(_flutterFFmpeg == null){ 80 | print('Please init FFmpegWrap first.'); 81 | return; 82 | } 83 | if(count < 5)count = 5; 84 | String size = '50x80'; 85 | if(imgSize != null)size = imgSize; 86 | var now = DateTime.now(); 87 | var timeStamp = now.millisecondsSinceEpoch; 88 | String pathOutput = '$_path/${timeStamp}out%08d.jpg'; 89 | _flutterFFmpeg.execute('-i $pathInput -y -f image2 -vf fps=fps=$count/$totalTime -s $size $pathOutput').then((rc){ 90 | print("FFmpeg process exited with rc $rc"); 91 | if(rc == 0){ 92 | List results = []; 93 | for(int i=1; i<= count; i++){ 94 | String tempIndex = i.toString().padLeft(8, '0'); 95 | results.add('$_path/${timeStamp}out$tempIndex.jpg'); 96 | } 97 | callback(results); 98 | }else{ 99 | callback([]); 100 | } 101 | }); 102 | } 103 | 104 | ///清除临时数据 105 | void clearCuteVideoCache(){ 106 | 107 | if(_path == null){ 108 | return; 109 | } 110 | 111 | Directory dir = Directory(_path); 112 | List list = dir.listSync(); 113 | for(int i=0; i 2 | 3 | 4 | 5 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | xmlns:android 14 | 15 | ^$ 16 | 17 | 18 | 19 |
20 |
21 | 22 | 23 | 24 | xmlns:.* 25 | 26 | ^$ 27 | 28 | 29 | BY_NAME 30 | 31 |
32 |
33 | 34 | 35 | 36 | .*:id 37 | 38 | http://schemas.android.com/apk/res/android 39 | 40 | 41 | 42 |
43 |
44 | 45 | 46 | 47 | .*:name 48 | 49 | http://schemas.android.com/apk/res/android 50 | 51 | 52 | 53 |
54 |
55 | 56 | 57 | 58 | name 59 | 60 | ^$ 61 | 62 | 63 | 64 |
65 |
66 | 67 | 68 | 69 | style 70 | 71 | ^$ 72 | 73 | 74 | 75 |
76 |
77 | 78 | 79 | 80 | .* 81 | 82 | ^$ 83 | 84 | 85 | BY_NAME 86 | 87 |
88 |
89 | 90 | 91 | 92 | .* 93 | 94 | http://schemas.android.com/apk/res/android 95 | 96 | 97 | ANDROID_ATTRIBUTE_ORDER 98 | 99 |
100 |
101 | 102 | 103 | 104 | .* 105 | 106 | .* 107 | 108 | 109 | BY_NAME 110 | 111 |
112 |
113 |
114 |
115 |
116 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | platform :ios, '9.3' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | generated_key_values = {} 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) do |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | generated_key_values[podname] = podpath 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | end 32 | generated_key_values 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | use_modular_headers! 38 | 39 | # Flutter Pod 40 | 41 | copied_flutter_dir = File.join(__dir__, 'Flutter') 42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework') 43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec') 44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path) 45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet. 46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration. 47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. 48 | 49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig') 50 | unless File.exist?(generated_xcode_build_settings_path) 51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first" 52 | end 53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path) 54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR']; 55 | 56 | unless File.exist?(copied_framework_path) 57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir) 58 | end 59 | unless File.exist?(copied_podspec_path) 60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir) 61 | end 62 | end 63 | 64 | # Keep pod path relative so it can be checked into Podfile.lock. 65 | pod 'Flutter', :path => 'Flutter' 66 | 67 | # Plugin Pods 68 | 69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 70 | # referring to absolute paths on developers' machines. 71 | system('rm -rf .symlinks') 72 | system('mkdir -p .symlinks/plugins') 73 | plugin_pods = parse_KV_file('../.flutter-plugins') 74 | plugin_pods.each do |name, path| 75 | symlink = File.join('.symlinks', 'plugins', name) 76 | File.symlink(path, symlink) 77 | if name == 'flutter_ffmpeg' 78 | pod name+'/full', :path => File.join(symlink, 'ios') 79 | else 80 | pod name, :path => File.join(symlink, 'ios') 81 | end 82 | end 83 | end 84 | 85 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 86 | install! 'cocoapods', :disable_input_output_paths => true 87 | 88 | post_install do |installer| 89 | installer.pods_project.targets.each do |target| 90 | target.build_configurations.each do |config| 91 | config.build_settings['ENABLE_BITCODE'] = 'NO' 92 | end 93 | end 94 | end 95 | -------------------------------------------------------------------------------- /lib/generated/i18n.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/foundation.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | // ignore_for_file: non_constant_identifier_names 7 | // ignore_for_file: camel_case_types 8 | // ignore_for_file: prefer_single_quotes 9 | 10 | // This file is automatically generated. DO NOT EDIT, all your changes would be lost. 11 | class S implements WidgetsLocalizations { 12 | const S(); 13 | 14 | static S current; 15 | 16 | static const GeneratedLocalizationsDelegate delegate = 17 | GeneratedLocalizationsDelegate(); 18 | 19 | static S of(BuildContext context) => Localizations.of(context, S); 20 | 21 | @override 22 | TextDirection get textDirection => TextDirection.ltr; 23 | 24 | } 25 | 26 | class $en extends S { 27 | const $en(); 28 | } 29 | 30 | class GeneratedLocalizationsDelegate extends LocalizationsDelegate { 31 | const GeneratedLocalizationsDelegate(); 32 | 33 | List get supportedLocales { 34 | return const [ 35 | Locale("en", ""), 36 | ]; 37 | } 38 | 39 | LocaleListResolutionCallback listResolution({Locale fallback, bool withCountry = true}) { 40 | return (List locales, Iterable supported) { 41 | if (locales == null || locales.isEmpty) { 42 | return fallback ?? supported.first; 43 | } else { 44 | return _resolve(locales.first, fallback, supported, withCountry); 45 | } 46 | }; 47 | } 48 | 49 | LocaleResolutionCallback resolution({Locale fallback, bool withCountry = true}) { 50 | return (Locale locale, Iterable supported) { 51 | return _resolve(locale, fallback, supported, withCountry); 52 | }; 53 | } 54 | 55 | @override 56 | Future load(Locale locale) { 57 | final String lang = getLang(locale); 58 | if (lang != null) { 59 | switch (lang) { 60 | case "en": 61 | S.current = const $en(); 62 | return SynchronousFuture(S.current); 63 | default: 64 | // NO-OP. 65 | } 66 | } 67 | S.current = const S(); 68 | return SynchronousFuture(S.current); 69 | } 70 | 71 | @override 72 | bool isSupported(Locale locale) => _isSupported(locale, true); 73 | 74 | @override 75 | bool shouldReload(GeneratedLocalizationsDelegate old) => false; 76 | 77 | /// 78 | /// Internal method to resolve a locale from a list of locales. 79 | /// 80 | Locale _resolve(Locale locale, Locale fallback, Iterable supported, bool withCountry) { 81 | if (locale == null || !_isSupported(locale, withCountry)) { 82 | return fallback ?? supported.first; 83 | } 84 | 85 | final Locale languageLocale = Locale(locale.languageCode, ""); 86 | if (supported.contains(locale)) { 87 | return locale; 88 | } else if (supported.contains(languageLocale)) { 89 | return languageLocale; 90 | } else { 91 | final Locale fallbackLocale = fallback ?? supported.first; 92 | return fallbackLocale; 93 | } 94 | } 95 | 96 | /// 97 | /// Returns true if the specified locale is supported, false otherwise. 98 | /// 99 | bool _isSupported(Locale locale, bool withCountry) { 100 | if (locale != null) { 101 | for (Locale supportedLocale in supportedLocales) { 102 | // Language must always match both locales. 103 | if (supportedLocale.languageCode != locale.languageCode) { 104 | continue; 105 | } 106 | 107 | // If country code matches, return this locale. 108 | if (supportedLocale.countryCode == locale.countryCode) { 109 | return true; 110 | } 111 | 112 | // If no country requirement is requested, check if this locale has no country. 113 | if (true != withCountry && (supportedLocale.countryCode == null || supportedLocale.countryCode.isEmpty)) { 114 | return true; 115 | } 116 | } 117 | } 118 | return false; 119 | } 120 | } 121 | 122 | String getLang(Locale l) => l == null 123 | ? null 124 | : l.countryCode != null && l.countryCode.isEmpty 125 | ? l.languageCode 126 | : l.toString(); 127 | -------------------------------------------------------------------------------- /lib/video_player.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:chewie/chewie.dart'; 4 | import 'package:flutter/cupertino.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:video_player/video_player.dart'; 7 | 8 | ///视频播放 9 | class AndyloveVideoPlayer extends StatefulWidget { 10 | File video; 11 | double start; 12 | var duration; 13 | bool autoPlay; 14 | Function(ChewieController playController) callBack; 15 | 16 | AndyloveVideoPlayer(this.video, 17 | {this.start = 0, this.duration, this.autoPlay = false, this.callBack}); 18 | 19 | @override 20 | State createState() { 21 | // TODO: implement createState 22 | return _PictureVideoPlayerState(); 23 | } 24 | } 25 | 26 | class _PictureVideoPlayerState extends State { 27 | VideoPlayerController _controller; 28 | ChewieController chewieController; 29 | 30 | Future inited; 31 | 32 | ///自定义播放控制器 33 | Widget customControl; 34 | 35 | @override 36 | void initState() { 37 | _controller = VideoPlayerController.file(widget.video) 38 | ..addListener(() { 39 | if (!mounted) { 40 | return; 41 | } 42 | 43 | if (widget.duration == null) { 44 | return; 45 | } 46 | 47 | if (_controller != null && _controller.value.initialized) { 48 | if (_controller.value.position.inMilliseconds > 49 | widget.start + widget.duration) { 50 | // print('重播时间开始:${widget.start}'); 51 | // print('播放时间到:${_controller.value.position.inMilliseconds}'); 52 | chewieController 53 | .seekTo(Duration(milliseconds: widget.start.toInt())); 54 | } 55 | } 56 | }); 57 | inited = _controller.initialize(); 58 | if (widget.autoPlay) { 59 | _controller.play(); 60 | } 61 | super.initState(); 62 | } 63 | 64 | @override 65 | void dispose() { 66 | super.dispose(); 67 | _controller?.dispose(); 68 | chewieController?.dispose(); 69 | } 70 | 71 | @override 72 | Widget build(BuildContext context) { 73 | customControl = GestureDetector( 74 | child: Container( 75 | width: double.infinity, 76 | height: double.infinity, 77 | color: Colors.transparent, 78 | alignment: Alignment.center, 79 | child: !_controller.value.isPlaying 80 | ? Container(width: 50.0,height: 50.0,child: Text('Paused',style: TextStyle(color: Colors.red),),color: Colors.white,alignment: Alignment.center,) 81 | : SizedBox( 82 | width: 0, 83 | height: 0, 84 | ), 85 | ), 86 | onTap: () { 87 | setState(() { 88 | if (_controller.value.isPlaying) { 89 | chewieController.pause(); 90 | } else { 91 | chewieController.play(); 92 | } 93 | }); 94 | }, 95 | ); 96 | 97 | return Center( 98 | child: FutureBuilder( 99 | future: inited, 100 | builder: (ctx, snapshot) { 101 | if (snapshot.connectionState == ConnectionState.done) { 102 | chewieController = ChewieController( 103 | videoPlayerController: _controller, 104 | aspectRatio: _controller.value.aspectRatio, 105 | autoPlay: false, 106 | looping: true, 107 | customControls: customControl, 108 | startAt: Duration(milliseconds: widget.start.toInt()), 109 | autoInitialize: true); 110 | if (widget.callBack != null) { 111 | widget.callBack(chewieController); 112 | } 113 | return Chewie( 114 | controller: chewieController, 115 | ); 116 | } 117 | 118 | return _getLoadding(); 119 | })); 120 | } 121 | 122 | Widget _getLoadding() { 123 | return new Center( 124 | child: (Platform.isIOS) 125 | ? new CupertinoActivityIndicator() 126 | : CircularProgressIndicator( 127 | strokeWidth: 2.0, 128 | valueColor: AlwaysStoppedAnimation(Color(0xffF04B42)), 129 | )); 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /lib/video_edit_frame_show_scroll.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/gestures.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | const _slideHeight = 60.0; 6 | 7 | ///视频frameshow(滚动帧列表),目前不完善 8 | class VideoEditFrameShowScroll extends StatefulWidget { 9 | double cuteVideoSeconds; 10 | double allVideoSeconds; 11 | 12 | VideoEditFrameShowScroll( 13 | {this.cuteVideoSeconds = 5, this.allVideoSeconds = 11}); 14 | 15 | @override 16 | State createState() { 17 | return _VideoEditFrameShowScrollState(); 18 | } 19 | } 20 | 21 | class _VideoEditFrameShowScrollState extends State { 22 | ///视频时间起点 23 | double _currentStartTime; 24 | 25 | ///视频时间止点 26 | double _currentEndTime; 27 | 28 | ///时间块儿宽度 29 | double _slideWidth = 45.0; 30 | 31 | ///帧宽度 32 | double _frameWidth = 15.0; 33 | 34 | List _frames = []; 35 | 36 | GlobalKey _slideKey = GlobalKey(); 37 | GlobalKey _frameKey = GlobalKey(); 38 | 39 | double _slideX = 0.0; 40 | 41 | double _scrollOffsetx = 0.0; 42 | 43 | @override 44 | void initState() { 45 | _refreshStartEndSeconds(0.0); 46 | _getFrames(30); 47 | super.initState(); 48 | } 49 | 50 | ///刷新起止时间 51 | void _refreshStartEndSeconds(double start) { 52 | _currentStartTime = start; 53 | _currentEndTime = _currentStartTime + widget.cuteVideoSeconds; 54 | print('起止时间:\nstart:$_currentStartTime\nend:$_currentEndTime'); 55 | } 56 | 57 | @override 58 | Widget build(BuildContext context) { 59 | return SizedBox( 60 | child: Stack( 61 | children: [ 62 | ///帧列表 63 | NotificationListener( 64 | child: SingleChildScrollView( 65 | scrollDirection: Axis.horizontal, 66 | physics: ClampingScrollPhysics(), 67 | child: Row( 68 | key: _frameKey, 69 | children: _frames.map((item) { 70 | return Image.asset( 71 | '$item', 72 | width: _frameWidth, 73 | height: _slideHeight, 74 | fit: BoxFit.fill, 75 | ); 76 | }).toList(), 77 | ), 78 | ), 79 | onNotification: (scroll) { 80 | 81 | 82 | _scrollOffsetx = scroll.metrics.pixels; 83 | print('滑动距离:$_scrollOffsetx'); 84 | print('帧列表总长度:${_frameKey.currentContext.size.width}'); 85 | 86 | 87 | RenderBox slideBox = _slideKey.currentContext.findRenderObject(); 88 | Offset slideOffset = slideBox.localToGlobal(Offset.zero); 89 | print('时间块位置 $slideOffset'); 90 | RenderBox frameBox = _frameKey.currentContext.findRenderObject(); 91 | Offset frameOffset = frameBox.localToGlobal(Offset.zero); 92 | print('帧列表位置 $frameOffset'); 93 | 94 | double sigam = widget.allVideoSeconds/_frameKey.currentContext.size.width; 95 | double start = double.parse((sigam*(slideOffset.dx - frameOffset.dx)).toStringAsFixed(1)); 96 | 97 | setState(() { 98 | _refreshStartEndSeconds(start); 99 | }); 100 | 101 | return false; 102 | }, 103 | ), 104 | 105 | ///时间截取滑块 106 | GestureDetector( 107 | onHorizontalDragUpdate: dragEvent, 108 | child: Transform.translate( 109 | offset: Offset(_slideX, 0), 110 | child: Container( 111 | alignment: Alignment.topLeft, 112 | child: Container( 113 | key: _slideKey, 114 | width: _slideWidth, 115 | height: _slideHeight, 116 | alignment: Alignment.center, 117 | color: Color(0xaa008FFF), 118 | ), 119 | ), 120 | ), 121 | ) 122 | ], 123 | ), 124 | height: _slideHeight, 125 | ); 126 | } 127 | 128 | ///滑块拖拽事件 129 | void dragEvent(DragUpdateDetails details) { 130 | 131 | RenderBox slideBox = _slideKey.currentContext.findRenderObject(); 132 | Offset slideOffset = slideBox.localToGlobal(Offset.zero); 133 | print('时间块位置 $slideOffset'); 134 | RenderBox frameBox = _frameKey.currentContext.findRenderObject(); 135 | Offset frameOffset = frameBox.localToGlobal(Offset.zero); 136 | print('帧列表位置 $frameOffset'); 137 | 138 | // 获得自定义Widget的大小,用来计算Widget的中心锚点 139 | _slideX = 140 | details.globalPosition.dx - _slideKey.currentContext.size.width / 2; 141 | 142 | 143 | double sigam = widget.allVideoSeconds/_frameKey.currentContext.size.width; 144 | double start = double.parse((sigam*(slideOffset.dx - frameOffset.dx)).toStringAsFixed(1)); 145 | 146 | setState(() { 147 | _refreshStartEndSeconds(start); 148 | }); 149 | } 150 | 151 | ///获取视频帧展示 152 | void _getFrames(int count) { 153 | Future.delayed(Duration(milliseconds: 1000), () { 154 | for (int i = 0; i < count; i++) { 155 | _frames.add('images/home_guide_1.jpg'); 156 | } 157 | setState(() {}); 158 | }); 159 | } 160 | } 161 | -------------------------------------------------------------------------------- /lib/video_edit_frame_show.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | import 'ffmpeg_utils.dart'; 7 | 8 | const _frameHeight = 55.0; 9 | 10 | ///时间块儿宽度 11 | const _slideWidth = 75.0; 12 | const _slideHeight = 61.0; 13 | 14 | const _unSelectedOverlayColor = Color(0x80000000); 15 | 16 | ///视频frameshow(不滚动帧列表) 17 | class VideoEditFrameShow extends StatefulWidget { 18 | String videoPath; 19 | double cuteVideoSeconds; 20 | double allVideoSeconds; 21 | 22 | Function(double start, double end) editListener; 23 | 24 | VideoEditFrameShow( 25 | {this.videoPath, 26 | this.cuteVideoSeconds, 27 | this.allVideoSeconds, 28 | this.editListener}); 29 | 30 | @override 31 | State createState() { 32 | return _VideoEditFrameShowState(); 33 | } 34 | } 35 | 36 | class _VideoEditFrameShowState extends State { 37 | ///视频时间起点 38 | double _currentStartTime; 39 | 40 | ///视频时间止点 41 | double _currentEndTime; 42 | 43 | ///滑块总进度 44 | double _slideMax; 45 | 46 | ///帧宽度 47 | double _frameWidth = 25.0; 48 | 49 | ///时间块儿左边距 50 | double _slideLeft; 51 | 52 | List _frames = []; 53 | 54 | @override 55 | void initState() { 56 | _slideMax = widget.allVideoSeconds - widget.cuteVideoSeconds; 57 | _refreshStartEndSeconds(0.0); 58 | _getFrames(); 59 | super.initState(); 60 | } 61 | 62 | ///刷新起止时间 63 | void _refreshStartEndSeconds(double start) { 64 | _currentStartTime = start; 65 | _currentEndTime = _currentStartTime + widget.cuteVideoSeconds; 66 | print('起止时间:\nstart:$_currentStartTime\nend:$_currentEndTime'); 67 | } 68 | 69 | @override 70 | Widget build(BuildContext context) { 71 | 72 | _slideLeft = _currentStartTime * 73 | ((MediaQuery.of(context).size.width - 74 | _slideWidth) / 75 | (widget.allVideoSeconds - widget.cuteVideoSeconds)); 76 | 77 | ///左蒙版宽度 78 | double popLeftWidth = _slideLeft - 22.5; 79 | if(popLeftWidth < 0){ 80 | popLeftWidth = 0; 81 | } 82 | ///右蒙版宽度 83 | double popRightWidth = MediaQuery.of(context).size.width - _slideLeft - _slideWidth - 22.5; 84 | if(popRightWidth < 0){ 85 | popRightWidth = 0; 86 | } 87 | 88 | ///如果所剪切视频与视频总时长等长,则不需要剪切,也不需要选帧 89 | return (widget.cuteVideoSeconds == widget.allVideoSeconds)?SizedBox(height: 0,):SizedBox( 90 | child: _frames.length > 0 91 | ? Stack( 92 | children: [ 93 | ///视频帧列表 94 | Align(child: Container( 95 | height: _frameHeight, 96 | child: Row( 97 | children: _frames.map((item) { 98 | return Image.file( 99 | File('$item'), 100 | width: _frameWidth, 101 | height: _frameHeight, 102 | fit: BoxFit.fill, 103 | ); 104 | }).toList(), 105 | ), 106 | margin: EdgeInsets.only(left:7.5,right: 7.5,bottom: 7.5), 107 | padding: EdgeInsets.only( 108 | left: 15.0, 109 | right: 15.0, 110 | top: 5.0, 111 | bottom: 5.0), 112 | decoration: BoxDecoration( 113 | color: Color(0xff333333), 114 | borderRadius: BorderRadius.all( 115 | Radius.circular(5.0))), 116 | ),alignment: Alignment.bottomCenter,), 117 | 118 | ///视频进度 119 | SliderTheme( 120 | data: SliderThemeData( 121 | trackHeight: 0.0, 122 | overlayColor: Colors.transparent, 123 | thumbColor: Colors.transparent, 124 | ), 125 | child: Slider( 126 | max: _slideMax, 127 | value: _currentStartTime, 128 | onChanged: (_currentValue) { 129 | setState(() { 130 | _refreshStartEndSeconds( 131 | double.parse(_currentValue.toStringAsFixed(1))); 132 | }); 133 | if (widget.editListener != null) { 134 | widget.editListener(_currentStartTime, _currentEndTime); 135 | } 136 | })), 137 | 138 | ///时间切块 139 | IgnorePointer( 140 | child: Stack(children: [ 141 | 142 | ///半透明-左侧 143 | Align(child: Container(color: _unSelectedOverlayColor,width: popLeftWidth,margin: EdgeInsets.only(top: 17.0,bottom: 12.5,left: 22.5)),alignment: Alignment.centerLeft), 144 | 145 | ///滑块(随意改) 146 | Container( 147 | alignment: Alignment.center, 148 | width: _slideWidth, 149 | height: _slideHeight + 20.0, 150 | margin: EdgeInsets.only(left: _slideLeft,bottom: 5.0), 151 | child: Stack( 152 | alignment: Alignment.topCenter, 153 | children: [ 154 | Container(child: Container( 155 | width: _slideWidth, 156 | height: _slideHeight, 157 | color:Color(0xaa40daee) 158 | ), 159 | ), 160 | Text( 161 | '${widget.cuteVideoSeconds} Seconds', 162 | style: TextStyle( 163 | color: Color(0xff000000), 164 | fontSize: 8.0), 165 | ) 166 | ], 167 | ), 168 | ), 169 | 170 | ///半透明-右侧 171 | Align(child: Container(margin: EdgeInsets.only(top: 17.0,bottom: 12.5,right: 22.5),color: _unSelectedOverlayColor,width: popRightWidth,),alignment: Alignment.centerRight,) 172 | 173 | ],), 174 | ignoring: true, 175 | ) 176 | ], 177 | ) 178 | : _getLoadding(), 179 | height: _frameHeight + 20.0, 180 | ); 181 | } 182 | 183 | Widget _getLoadding() { 184 | return new Center( 185 | child: (Platform.isIOS)?new CupertinoActivityIndicator():CircularProgressIndicator( 186 | strokeWidth: 2.0, 187 | valueColor: AlwaysStoppedAnimation(Color(0xffF04B42)), 188 | )); 189 | } 190 | 191 | ///获取视频帧展示 192 | _getFrames() { 193 | 194 | if(widget.allVideoSeconds == widget.cuteVideoSeconds){ 195 | return; 196 | } 197 | 198 | Future.delayed(Duration(milliseconds: 300), () async { 199 | int count = ((MediaQuery.of(context).size.width - 45.0)/ _frameWidth).ceil(); 200 | getVideoFrames(widget.videoPath, widget.allVideoSeconds, count, (items) { 201 | setState(() { 202 | _frames = items; 203 | }); 204 | }); 205 | }); 206 | } 207 | 208 | } 209 | -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:chewie/chewie.dart'; 4 | import 'package:flutter/cupertino.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter_video_editor/video_edit_frame_show.dart'; 7 | import 'package:flutter_video_editor/video_player.dart'; 8 | import 'package:flutter_video_editor/ffmpeg_utils.dart'; 9 | import 'package:image_picker/image_picker.dart'; 10 | 11 | ///截取时长 12 | const _cutDuration = 2.5; 13 | 14 | void main() => runApp(MyApp()); 15 | 16 | class MyApp extends StatefulWidget { 17 | @override 18 | _MyAppState createState() => _MyAppState(); 19 | } 20 | 21 | class _MyAppState extends State { 22 | 23 | @override 24 | void initState() { 25 | initFFmpegWrap(); 26 | super.initState(); 27 | } 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | return MaterialApp( 32 | home: Home(), 33 | ); 34 | } 35 | } 36 | 37 | class Home extends StatefulWidget{ 38 | 39 | @override 40 | State createState() { 41 | // TODO: implement createState 42 | return _HomeState(); 43 | } 44 | 45 | } 46 | 47 | ///home 48 | class _HomeState extends State { 49 | 50 | File video; 51 | double startTime = 0.0; 52 | 53 | ///为了精确,单位毫秒 54 | var allVideoDuration; 55 | 56 | ///播放控制器 57 | ChewieController playController; 58 | 59 | @override 60 | void dispose() { 61 | clearCuteVideoCache(); 62 | super.dispose(); 63 | } 64 | 65 | Widget _getLoadding() { 66 | return new Center( 67 | child: (Platform.isIOS) 68 | ? new CupertinoActivityIndicator() 69 | : CircularProgressIndicator( 70 | strokeWidth: 2.0, 71 | valueColor: AlwaysStoppedAnimation(Color(0xffF04B42)), 72 | )); 73 | } 74 | 75 | @override 76 | Widget build(BuildContext context) { 77 | // TODO: implement build 78 | return Scaffold( 79 | appBar: AppBar( 80 | title: const Text('Plugin video editor'), 81 | ), 82 | body: Column( 83 | children: [ 84 | ///选择视频 85 | Container( 86 | width: double.infinity, 87 | height: 80, 88 | child: RaisedButton( 89 | onPressed: () async { 90 | File file = 91 | await ImagePicker.pickVideo(source: ImageSource.gallery); 92 | print('原视频路径: ${file?.path}'); 93 | if (file == null) { 94 | return; 95 | } 96 | 97 | int videoTotal = await getVideoDuration(file.path); 98 | setState(() { 99 | allVideoDuration = videoTotal; 100 | print('视频总时长毫秒:$allVideoDuration'); 101 | video = file; 102 | }); 103 | }, 104 | child: Center( 105 | child: Text('choose video'), 106 | ), 107 | ), 108 | ), 109 | 110 | ///video 111 | Expanded( 112 | child: (video == null) 113 | ? Container( 114 | color: Colors.green, 115 | child: Center( 116 | child: Text('原始视频'), 117 | ), 118 | ) 119 | : Container( 120 | child: AndyloveVideoPlayer( 121 | video, 122 | start: startTime, 123 | duration: _cutDuration, 124 | callBack: (player){ 125 | playController = player; 126 | }, 127 | ), 128 | color: Color(0xff252525), 129 | ), 130 | flex: 1, 131 | ), 132 | 133 | ///截取块 134 | (video == null) 135 | ? SizedBox( 136 | width: 0, 137 | height: 0, 138 | ) 139 | : VideoEditFrameShow( 140 | videoPath: video.path, 141 | cuteVideoSeconds: (_cutDuration > (allVideoDuration / 1000)) 142 | ? (allVideoDuration / 1000) 143 | : _cutDuration, 144 | allVideoSeconds: allVideoDuration / 1000, 145 | editListener: (start, end) { 146 | setState(() { 147 | this.startTime = start; 148 | }); 149 | }, 150 | ), 151 | 152 | ///剪切视频 153 | Container( 154 | width: double.infinity, 155 | height: 80, 156 | child: RaisedButton( 157 | onPressed: () async { 158 | 159 | ///开始剪切时暂停视频播放 160 | playController?.pause(); 161 | 162 | ///loading 163 | showCupertinoDialog( 164 | context: context, 165 | builder: (ctx) { 166 | return Container( 167 | color: Colors.white, 168 | child: Column( 169 | crossAxisAlignment: CrossAxisAlignment.center, 170 | mainAxisAlignment: MainAxisAlignment.center, 171 | children: [ 172 | _getLoadding(), 173 | SizedBox( 174 | height: 10, 175 | ), 176 | Text('cuting...'), 177 | ], 178 | ), 179 | width: 100, 180 | height: 100, 181 | alignment: Alignment.center, 182 | ); 183 | }); 184 | 185 | String cutePath = 186 | await cuteVideo(video.path, startTime, _cutDuration); 187 | 188 | Navigator.pop(context); 189 | 190 | if(cutePath == null){ 191 | print('剪切失败'); 192 | return; 193 | } 194 | print('剪切后的视频路径:$cutePath'); 195 | Navigator.push(context, MaterialPageRoute(builder: (context) { 196 | return CutVideoPlayer(File(cutePath)); 197 | })); 198 | }, 199 | child: Center( 200 | child: Text('cute video'), 201 | ), 202 | ), 203 | ), 204 | ], 205 | ), 206 | ); 207 | } 208 | } 209 | 210 | 211 | ///播放剪辑后的视频 212 | class CutVideoPlayer extends StatelessWidget { 213 | File video; 214 | 215 | CutVideoPlayer(this.video); 216 | 217 | @override 218 | Widget build(BuildContext context) { 219 | // TODO: implement build 220 | return Scaffold( 221 | appBar: AppBar( 222 | title: Text('cutVideo'), 223 | ), 224 | body: Container(child: AndyloveVideoPlayer( 225 | video, 226 | autoPlay: true, 227 | ),color: Color(0xff252525),), 228 | ); 229 | } 230 | } 231 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.5" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | chewie: 40 | dependency: "direct main" 41 | description: 42 | name: chewie 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "0.9.7" 46 | collection: 47 | dependency: transitive 48 | description: 49 | name: collection 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.14.11" 53 | convert: 54 | dependency: transitive 55 | description: 56 | name: convert 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.1" 60 | crypto: 61 | dependency: transitive 62 | description: 63 | name: crypto 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.1.3" 67 | flutter: 68 | dependency: "direct main" 69 | description: flutter 70 | source: sdk 71 | version: "0.0.0" 72 | flutter_ffmpeg: 73 | dependency: "direct main" 74 | description: 75 | name: flutter_ffmpeg 76 | url: "https://pub.dartlang.org" 77 | source: hosted 78 | version: "0.2.10" 79 | flutter_plugin_android_lifecycle: 80 | dependency: transitive 81 | description: 82 | name: flutter_plugin_android_lifecycle 83 | url: "https://pub.dartlang.org" 84 | source: hosted 85 | version: "1.0.6" 86 | flutter_test: 87 | dependency: "direct dev" 88 | description: flutter 89 | source: sdk 90 | version: "0.0.0" 91 | flutter_web_plugins: 92 | dependency: transitive 93 | description: flutter 94 | source: sdk 95 | version: "0.0.0" 96 | image: 97 | dependency: transitive 98 | description: 99 | name: image 100 | url: "https://pub.dartlang.org" 101 | source: hosted 102 | version: "2.1.4" 103 | image_picker: 104 | dependency: "direct main" 105 | description: 106 | name: image_picker 107 | url: "https://pub.dartlang.org" 108 | source: hosted 109 | version: "0.6.3+4" 110 | matcher: 111 | dependency: transitive 112 | description: 113 | name: matcher 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "0.12.6" 117 | meta: 118 | dependency: transitive 119 | description: 120 | name: meta 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.1.8" 124 | open_iconic_flutter: 125 | dependency: transitive 126 | description: 127 | name: open_iconic_flutter 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "0.3.0" 131 | path: 132 | dependency: transitive 133 | description: 134 | name: path 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.6.4" 138 | path_provider: 139 | dependency: "direct main" 140 | description: 141 | name: path_provider 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "0.5.0+1" 145 | pedantic: 146 | dependency: transitive 147 | description: 148 | name: pedantic 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.8.0+1" 152 | petitparser: 153 | dependency: transitive 154 | description: 155 | name: petitparser 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "2.4.0" 159 | quiver: 160 | dependency: transitive 161 | description: 162 | name: quiver 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "2.0.5" 166 | screen: 167 | dependency: transitive 168 | description: 169 | name: screen 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "0.0.5" 173 | sky_engine: 174 | dependency: transitive 175 | description: flutter 176 | source: sdk 177 | version: "0.0.99" 178 | source_span: 179 | dependency: transitive 180 | description: 181 | name: source_span 182 | url: "https://pub.dartlang.org" 183 | source: hosted 184 | version: "1.5.5" 185 | stack_trace: 186 | dependency: transitive 187 | description: 188 | name: stack_trace 189 | url: "https://pub.dartlang.org" 190 | source: hosted 191 | version: "1.9.3" 192 | stream_channel: 193 | dependency: transitive 194 | description: 195 | name: stream_channel 196 | url: "https://pub.dartlang.org" 197 | source: hosted 198 | version: "2.0.0" 199 | string_scanner: 200 | dependency: transitive 201 | description: 202 | name: string_scanner 203 | url: "https://pub.dartlang.org" 204 | source: hosted 205 | version: "1.0.5" 206 | term_glyph: 207 | dependency: transitive 208 | description: 209 | name: term_glyph 210 | url: "https://pub.dartlang.org" 211 | source: hosted 212 | version: "1.1.0" 213 | test_api: 214 | dependency: transitive 215 | description: 216 | name: test_api 217 | url: "https://pub.dartlang.org" 218 | source: hosted 219 | version: "0.2.11" 220 | typed_data: 221 | dependency: transitive 222 | description: 223 | name: typed_data 224 | url: "https://pub.dartlang.org" 225 | source: hosted 226 | version: "1.1.6" 227 | vector_math: 228 | dependency: transitive 229 | description: 230 | name: vector_math 231 | url: "https://pub.dartlang.org" 232 | source: hosted 233 | version: "2.0.8" 234 | video_player: 235 | dependency: "direct main" 236 | description: 237 | name: video_player 238 | url: "https://pub.dartlang.org" 239 | source: hosted 240 | version: "0.10.8+1" 241 | video_player_platform_interface: 242 | dependency: transitive 243 | description: 244 | name: video_player_platform_interface 245 | url: "https://pub.dartlang.org" 246 | source: hosted 247 | version: "1.0.5" 248 | video_player_web: 249 | dependency: transitive 250 | description: 251 | name: video_player_web 252 | url: "https://pub.dartlang.org" 253 | source: hosted 254 | version: "0.1.2+1" 255 | xml: 256 | dependency: transitive 257 | description: 258 | name: xml 259 | url: "https://pub.dartlang.org" 260 | source: hosted 261 | version: "3.5.0" 262 | sdks: 263 | dart: ">=2.4.0 <3.0.0" 264 | flutter: ">=1.12.13+hotfix.4 <2.0.0" 265 | -------------------------------------------------------------------------------- /example/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.5" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | chewie: 40 | dependency: "direct main" 41 | description: 42 | name: chewie 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "0.9.7" 46 | collection: 47 | dependency: transitive 48 | description: 49 | name: collection 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.14.11" 53 | convert: 54 | dependency: transitive 55 | description: 56 | name: convert 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.1" 60 | crypto: 61 | dependency: transitive 62 | description: 63 | name: crypto 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.1.3" 67 | cupertino_icons: 68 | dependency: "direct main" 69 | description: 70 | name: cupertino_icons 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "0.1.3" 74 | flutter: 75 | dependency: "direct main" 76 | description: flutter 77 | source: sdk 78 | version: "0.0.0" 79 | flutter_ffmpeg: 80 | dependency: transitive 81 | description: 82 | name: flutter_ffmpeg 83 | url: "https://pub.dartlang.org" 84 | source: hosted 85 | version: "0.2.10" 86 | flutter_plugin_android_lifecycle: 87 | dependency: transitive 88 | description: 89 | name: flutter_plugin_android_lifecycle 90 | url: "https://pub.dartlang.org" 91 | source: hosted 92 | version: "1.0.6" 93 | flutter_test: 94 | dependency: "direct dev" 95 | description: flutter 96 | source: sdk 97 | version: "0.0.0" 98 | flutter_video_editor: 99 | dependency: "direct dev" 100 | description: 101 | path: ".." 102 | relative: true 103 | source: path 104 | version: "0.0.1+1" 105 | flutter_web_plugins: 106 | dependency: transitive 107 | description: flutter 108 | source: sdk 109 | version: "0.0.0" 110 | image: 111 | dependency: transitive 112 | description: 113 | name: image 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "2.1.4" 117 | image_picker: 118 | dependency: "direct main" 119 | description: 120 | name: image_picker 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "0.6.3+4" 124 | matcher: 125 | dependency: transitive 126 | description: 127 | name: matcher 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "0.12.6" 131 | meta: 132 | dependency: transitive 133 | description: 134 | name: meta 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.1.8" 138 | open_iconic_flutter: 139 | dependency: transitive 140 | description: 141 | name: open_iconic_flutter 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "0.3.0" 145 | path: 146 | dependency: transitive 147 | description: 148 | name: path 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.6.4" 152 | path_provider: 153 | dependency: transitive 154 | description: 155 | name: path_provider 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "0.5.0+1" 159 | pedantic: 160 | dependency: transitive 161 | description: 162 | name: pedantic 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.8.0+1" 166 | petitparser: 167 | dependency: transitive 168 | description: 169 | name: petitparser 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "2.4.0" 173 | quiver: 174 | dependency: transitive 175 | description: 176 | name: quiver 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "2.0.5" 180 | screen: 181 | dependency: transitive 182 | description: 183 | name: screen 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "0.0.5" 187 | sky_engine: 188 | dependency: transitive 189 | description: flutter 190 | source: sdk 191 | version: "0.0.99" 192 | source_span: 193 | dependency: transitive 194 | description: 195 | name: source_span 196 | url: "https://pub.dartlang.org" 197 | source: hosted 198 | version: "1.5.5" 199 | stack_trace: 200 | dependency: transitive 201 | description: 202 | name: stack_trace 203 | url: "https://pub.dartlang.org" 204 | source: hosted 205 | version: "1.9.3" 206 | stream_channel: 207 | dependency: transitive 208 | description: 209 | name: stream_channel 210 | url: "https://pub.dartlang.org" 211 | source: hosted 212 | version: "2.0.0" 213 | string_scanner: 214 | dependency: transitive 215 | description: 216 | name: string_scanner 217 | url: "https://pub.dartlang.org" 218 | source: hosted 219 | version: "1.0.5" 220 | term_glyph: 221 | dependency: transitive 222 | description: 223 | name: term_glyph 224 | url: "https://pub.dartlang.org" 225 | source: hosted 226 | version: "1.1.0" 227 | test_api: 228 | dependency: transitive 229 | description: 230 | name: test_api 231 | url: "https://pub.dartlang.org" 232 | source: hosted 233 | version: "0.2.11" 234 | typed_data: 235 | dependency: transitive 236 | description: 237 | name: typed_data 238 | url: "https://pub.dartlang.org" 239 | source: hosted 240 | version: "1.1.6" 241 | vector_math: 242 | dependency: transitive 243 | description: 244 | name: vector_math 245 | url: "https://pub.dartlang.org" 246 | source: hosted 247 | version: "2.0.8" 248 | video_player: 249 | dependency: transitive 250 | description: 251 | name: video_player 252 | url: "https://pub.dartlang.org" 253 | source: hosted 254 | version: "0.10.8+1" 255 | video_player_platform_interface: 256 | dependency: transitive 257 | description: 258 | name: video_player_platform_interface 259 | url: "https://pub.dartlang.org" 260 | source: hosted 261 | version: "1.0.5" 262 | video_player_web: 263 | dependency: transitive 264 | description: 265 | name: video_player_web 266 | url: "https://pub.dartlang.org" 267 | source: hosted 268 | version: "0.1.2+1" 269 | xml: 270 | dependency: transitive 271 | description: 272 | name: xml 273 | url: "https://pub.dartlang.org" 274 | source: hosted 275 | version: "3.5.0" 276 | sdks: 277 | dart: ">=2.4.0 <3.0.0" 278 | flutter: ">=1.12.13+hotfix.4 <2.0.0" 279 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | path_provider 34 | video_player_platform_interface 35 | description 36 | popRightWidth 37 | autoPlay 38 | 0.10. 39 | image_picker 40 | ffmpeg 41 | ff 42 | flutter_ffmpeg 43 | image 44 | pickVideo 45 | video 46 | _cutDuration 47 | allVideoDuration 48 | 49 | 50 | 51 | 69 | 70 | 71 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 1586865539139 119 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 18 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 19 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 20 | 9D98A88710F900A5664B7370 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99B5A1253EAD986DC3CFED8D /* Pods_Runner.framework */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXCopyFilesBuildPhase section */ 24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 25 | isa = PBXCopyFilesBuildPhase; 26 | buildActionMask = 2147483647; 27 | dstPath = ""; 28 | dstSubfolderSpec = 10; 29 | files = ( 30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 32 | ); 33 | name = "Embed Frameworks"; 34 | runOnlyForDeploymentPostprocessing = 0; 35 | }; 36 | /* End PBXCopyFilesBuildPhase section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 43 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 44 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 45 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 46 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 47 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 48 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 49 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 51 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 52 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 53 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | 99B5A1253EAD986DC3CFED8D /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 9DC423CE353D8C2A63EAED53 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 56 | C76AC8160A3EEA4B8FC5D7A1 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 57 | D6D2068E7B693224DC52F883 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 66 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 67 | 9D98A88710F900A5664B7370 /* Pods_Runner.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | /* End PBXFrameworksBuildPhase section */ 72 | 73 | /* Begin PBXGroup section */ 74 | 1BC255EC0D04B106782DE37C /* Frameworks */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 99B5A1253EAD986DC3CFED8D /* Pods_Runner.framework */, 78 | ); 79 | name = Frameworks; 80 | sourceTree = ""; 81 | }; 82 | 1D1714F0EF6C6DD84C486A4B /* Pods */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | C76AC8160A3EEA4B8FC5D7A1 /* Pods-Runner.debug.xcconfig */, 86 | D6D2068E7B693224DC52F883 /* Pods-Runner.release.xcconfig */, 87 | 9DC423CE353D8C2A63EAED53 /* Pods-Runner.profile.xcconfig */, 88 | ); 89 | name = Pods; 90 | path = Pods; 91 | sourceTree = ""; 92 | }; 93 | 9740EEB11CF90186004384FC /* Flutter */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 3B80C3931E831B6300D905FE /* App.framework */, 97 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 98 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 99 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 100 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 101 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 102 | ); 103 | name = Flutter; 104 | sourceTree = ""; 105 | }; 106 | 97C146E51CF9000F007C117D = { 107 | isa = PBXGroup; 108 | children = ( 109 | 9740EEB11CF90186004384FC /* Flutter */, 110 | 97C146F01CF9000F007C117D /* Runner */, 111 | 97C146EF1CF9000F007C117D /* Products */, 112 | 1D1714F0EF6C6DD84C486A4B /* Pods */, 113 | 1BC255EC0D04B106782DE37C /* Frameworks */, 114 | ); 115 | sourceTree = ""; 116 | }; 117 | 97C146EF1CF9000F007C117D /* Products */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 97C146EE1CF9000F007C117D /* Runner.app */, 121 | ); 122 | name = Products; 123 | sourceTree = ""; 124 | }; 125 | 97C146F01CF9000F007C117D /* Runner */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 129 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 130 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 131 | 97C147021CF9000F007C117D /* Info.plist */, 132 | 97C146F11CF9000F007C117D /* Supporting Files */, 133 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 134 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 135 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 136 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 137 | ); 138 | path = Runner; 139 | sourceTree = ""; 140 | }; 141 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | ); 145 | name = "Supporting Files"; 146 | sourceTree = ""; 147 | }; 148 | /* End PBXGroup section */ 149 | 150 | /* Begin PBXNativeTarget section */ 151 | 97C146ED1CF9000F007C117D /* Runner */ = { 152 | isa = PBXNativeTarget; 153 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 154 | buildPhases = ( 155 | 7B2B2D54BB1A207503DFD219 /* [CP] Check Pods Manifest.lock */, 156 | 9740EEB61CF901F6004384FC /* Run Script */, 157 | 97C146EA1CF9000F007C117D /* Sources */, 158 | 97C146EB1CF9000F007C117D /* Frameworks */, 159 | 97C146EC1CF9000F007C117D /* Resources */, 160 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 161 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 162 | F52D2B7D7D32029EE227BFE2 /* [CP] Embed Pods Frameworks */, 163 | ); 164 | buildRules = ( 165 | ); 166 | dependencies = ( 167 | ); 168 | name = Runner; 169 | productName = Runner; 170 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 171 | productType = "com.apple.product-type.application"; 172 | }; 173 | /* End PBXNativeTarget section */ 174 | 175 | /* Begin PBXProject section */ 176 | 97C146E61CF9000F007C117D /* Project object */ = { 177 | isa = PBXProject; 178 | attributes = { 179 | LastUpgradeCheck = 1020; 180 | ORGANIZATIONNAME = "The Chromium Authors"; 181 | TargetAttributes = { 182 | 97C146ED1CF9000F007C117D = { 183 | CreatedOnToolsVersion = 7.3.1; 184 | LastSwiftMigration = 1100; 185 | }; 186 | }; 187 | }; 188 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 189 | compatibilityVersion = "Xcode 3.2"; 190 | developmentRegion = en; 191 | hasScannedForEncodings = 0; 192 | knownRegions = ( 193 | en, 194 | Base, 195 | ); 196 | mainGroup = 97C146E51CF9000F007C117D; 197 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 198 | projectDirPath = ""; 199 | projectRoot = ""; 200 | targets = ( 201 | 97C146ED1CF9000F007C117D /* Runner */, 202 | ); 203 | }; 204 | /* End PBXProject section */ 205 | 206 | /* Begin PBXResourcesBuildPhase section */ 207 | 97C146EC1CF9000F007C117D /* Resources */ = { 208 | isa = PBXResourcesBuildPhase; 209 | buildActionMask = 2147483647; 210 | files = ( 211 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 212 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 213 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 214 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | }; 218 | /* End PBXResourcesBuildPhase section */ 219 | 220 | /* Begin PBXShellScriptBuildPhase section */ 221 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 222 | isa = PBXShellScriptBuildPhase; 223 | buildActionMask = 2147483647; 224 | files = ( 225 | ); 226 | inputPaths = ( 227 | ); 228 | name = "Thin Binary"; 229 | outputPaths = ( 230 | ); 231 | runOnlyForDeploymentPostprocessing = 0; 232 | shellPath = /bin/sh; 233 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin\n"; 234 | }; 235 | 7B2B2D54BB1A207503DFD219 /* [CP] Check Pods Manifest.lock */ = { 236 | isa = PBXShellScriptBuildPhase; 237 | buildActionMask = 2147483647; 238 | files = ( 239 | ); 240 | inputFileListPaths = ( 241 | ); 242 | inputPaths = ( 243 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 244 | "${PODS_ROOT}/Manifest.lock", 245 | ); 246 | name = "[CP] Check Pods Manifest.lock"; 247 | outputFileListPaths = ( 248 | ); 249 | outputPaths = ( 250 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 255 | showEnvVarsInLog = 0; 256 | }; 257 | 9740EEB61CF901F6004384FC /* Run Script */ = { 258 | isa = PBXShellScriptBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | inputPaths = ( 263 | ); 264 | name = "Run Script"; 265 | outputPaths = ( 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | shellPath = /bin/sh; 269 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 270 | }; 271 | F52D2B7D7D32029EE227BFE2 /* [CP] Embed Pods Frameworks */ = { 272 | isa = PBXShellScriptBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | ); 276 | inputPaths = ( 277 | ); 278 | name = "[CP] Embed Pods Frameworks"; 279 | outputPaths = ( 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | shellPath = /bin/sh; 283 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 284 | showEnvVarsInLog = 0; 285 | }; 286 | /* End PBXShellScriptBuildPhase section */ 287 | 288 | /* Begin PBXSourcesBuildPhase section */ 289 | 97C146EA1CF9000F007C117D /* Sources */ = { 290 | isa = PBXSourcesBuildPhase; 291 | buildActionMask = 2147483647; 292 | files = ( 293 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 294 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | }; 298 | /* End PBXSourcesBuildPhase section */ 299 | 300 | /* Begin PBXVariantGroup section */ 301 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 302 | isa = PBXVariantGroup; 303 | children = ( 304 | 97C146FB1CF9000F007C117D /* Base */, 305 | ); 306 | name = Main.storyboard; 307 | sourceTree = ""; 308 | }; 309 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 310 | isa = PBXVariantGroup; 311 | children = ( 312 | 97C147001CF9000F007C117D /* Base */, 313 | ); 314 | name = LaunchScreen.storyboard; 315 | sourceTree = ""; 316 | }; 317 | /* End PBXVariantGroup section */ 318 | 319 | /* Begin XCBuildConfiguration section */ 320 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 321 | isa = XCBuildConfiguration; 322 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 323 | buildSettings = { 324 | ALWAYS_SEARCH_USER_PATHS = NO; 325 | CLANG_ANALYZER_NONNULL = YES; 326 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 327 | CLANG_CXX_LIBRARY = "libc++"; 328 | CLANG_ENABLE_MODULES = YES; 329 | CLANG_ENABLE_OBJC_ARC = YES; 330 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 331 | CLANG_WARN_BOOL_CONVERSION = YES; 332 | CLANG_WARN_COMMA = YES; 333 | CLANG_WARN_CONSTANT_CONVERSION = YES; 334 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 335 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 336 | CLANG_WARN_EMPTY_BODY = YES; 337 | CLANG_WARN_ENUM_CONVERSION = YES; 338 | CLANG_WARN_INFINITE_RECURSION = YES; 339 | CLANG_WARN_INT_CONVERSION = YES; 340 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 341 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 342 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 343 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 344 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 345 | CLANG_WARN_STRICT_PROTOTYPES = YES; 346 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 347 | CLANG_WARN_UNREACHABLE_CODE = YES; 348 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 349 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 350 | COPY_PHASE_STRIP = NO; 351 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 352 | ENABLE_NS_ASSERTIONS = NO; 353 | ENABLE_STRICT_OBJC_MSGSEND = YES; 354 | GCC_C_LANGUAGE_STANDARD = gnu99; 355 | GCC_NO_COMMON_BLOCKS = YES; 356 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 357 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 358 | GCC_WARN_UNDECLARED_SELECTOR = YES; 359 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 360 | GCC_WARN_UNUSED_FUNCTION = YES; 361 | GCC_WARN_UNUSED_VARIABLE = YES; 362 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 363 | MTL_ENABLE_DEBUG_INFO = NO; 364 | SDKROOT = iphoneos; 365 | SUPPORTED_PLATFORMS = iphoneos; 366 | TARGETED_DEVICE_FAMILY = "1,2"; 367 | VALIDATE_PRODUCT = YES; 368 | }; 369 | name = Profile; 370 | }; 371 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 372 | isa = XCBuildConfiguration; 373 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 374 | buildSettings = { 375 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 376 | CLANG_ENABLE_MODULES = YES; 377 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 378 | ENABLE_BITCODE = NO; 379 | FRAMEWORK_SEARCH_PATHS = ( 380 | "$(inherited)", 381 | "$(PROJECT_DIR)/Flutter", 382 | ); 383 | INFOPLIST_FILE = Runner/Info.plist; 384 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 385 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 386 | LIBRARY_SEARCH_PATHS = ( 387 | "$(inherited)", 388 | "$(PROJECT_DIR)/Flutter", 389 | ); 390 | PRODUCT_BUNDLE_IDENTIFIER = com.andylove.flutterVideoEditorExample; 391 | PRODUCT_NAME = "$(TARGET_NAME)"; 392 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 393 | SWIFT_VERSION = 5.0; 394 | VERSIONING_SYSTEM = "apple-generic"; 395 | }; 396 | name = Profile; 397 | }; 398 | 97C147031CF9000F007C117D /* Debug */ = { 399 | isa = XCBuildConfiguration; 400 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 401 | buildSettings = { 402 | ALWAYS_SEARCH_USER_PATHS = NO; 403 | CLANG_ANALYZER_NONNULL = YES; 404 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 405 | CLANG_CXX_LIBRARY = "libc++"; 406 | CLANG_ENABLE_MODULES = YES; 407 | CLANG_ENABLE_OBJC_ARC = YES; 408 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 409 | CLANG_WARN_BOOL_CONVERSION = YES; 410 | CLANG_WARN_COMMA = YES; 411 | CLANG_WARN_CONSTANT_CONVERSION = YES; 412 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 413 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 414 | CLANG_WARN_EMPTY_BODY = YES; 415 | CLANG_WARN_ENUM_CONVERSION = YES; 416 | CLANG_WARN_INFINITE_RECURSION = YES; 417 | CLANG_WARN_INT_CONVERSION = YES; 418 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 419 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 420 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 422 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 423 | CLANG_WARN_STRICT_PROTOTYPES = YES; 424 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 425 | CLANG_WARN_UNREACHABLE_CODE = YES; 426 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 427 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 428 | COPY_PHASE_STRIP = NO; 429 | DEBUG_INFORMATION_FORMAT = dwarf; 430 | ENABLE_STRICT_OBJC_MSGSEND = YES; 431 | ENABLE_TESTABILITY = YES; 432 | GCC_C_LANGUAGE_STANDARD = gnu99; 433 | GCC_DYNAMIC_NO_PIC = NO; 434 | GCC_NO_COMMON_BLOCKS = YES; 435 | GCC_OPTIMIZATION_LEVEL = 0; 436 | GCC_PREPROCESSOR_DEFINITIONS = ( 437 | "DEBUG=1", 438 | "$(inherited)", 439 | ); 440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 441 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 442 | GCC_WARN_UNDECLARED_SELECTOR = YES; 443 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 444 | GCC_WARN_UNUSED_FUNCTION = YES; 445 | GCC_WARN_UNUSED_VARIABLE = YES; 446 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 447 | MTL_ENABLE_DEBUG_INFO = YES; 448 | ONLY_ACTIVE_ARCH = YES; 449 | SDKROOT = iphoneos; 450 | TARGETED_DEVICE_FAMILY = "1,2"; 451 | }; 452 | name = Debug; 453 | }; 454 | 97C147041CF9000F007C117D /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 457 | buildSettings = { 458 | ALWAYS_SEARCH_USER_PATHS = NO; 459 | CLANG_ANALYZER_NONNULL = YES; 460 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 461 | CLANG_CXX_LIBRARY = "libc++"; 462 | CLANG_ENABLE_MODULES = YES; 463 | CLANG_ENABLE_OBJC_ARC = YES; 464 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 465 | CLANG_WARN_BOOL_CONVERSION = YES; 466 | CLANG_WARN_COMMA = YES; 467 | CLANG_WARN_CONSTANT_CONVERSION = YES; 468 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 469 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 470 | CLANG_WARN_EMPTY_BODY = YES; 471 | CLANG_WARN_ENUM_CONVERSION = YES; 472 | CLANG_WARN_INFINITE_RECURSION = YES; 473 | CLANG_WARN_INT_CONVERSION = YES; 474 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 475 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 476 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 477 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 478 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 479 | CLANG_WARN_STRICT_PROTOTYPES = YES; 480 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 481 | CLANG_WARN_UNREACHABLE_CODE = YES; 482 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 483 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 484 | COPY_PHASE_STRIP = NO; 485 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 486 | ENABLE_NS_ASSERTIONS = NO; 487 | ENABLE_STRICT_OBJC_MSGSEND = YES; 488 | GCC_C_LANGUAGE_STANDARD = gnu99; 489 | GCC_NO_COMMON_BLOCKS = YES; 490 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 491 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 492 | GCC_WARN_UNDECLARED_SELECTOR = YES; 493 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 494 | GCC_WARN_UNUSED_FUNCTION = YES; 495 | GCC_WARN_UNUSED_VARIABLE = YES; 496 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 497 | MTL_ENABLE_DEBUG_INFO = NO; 498 | SDKROOT = iphoneos; 499 | SUPPORTED_PLATFORMS = iphoneos; 500 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 501 | TARGETED_DEVICE_FAMILY = "1,2"; 502 | VALIDATE_PRODUCT = YES; 503 | }; 504 | name = Release; 505 | }; 506 | 97C147061CF9000F007C117D /* Debug */ = { 507 | isa = XCBuildConfiguration; 508 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 509 | buildSettings = { 510 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 511 | CLANG_ENABLE_MODULES = YES; 512 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 513 | ENABLE_BITCODE = NO; 514 | FRAMEWORK_SEARCH_PATHS = ( 515 | "$(inherited)", 516 | "$(PROJECT_DIR)/Flutter", 517 | ); 518 | INFOPLIST_FILE = Runner/Info.plist; 519 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 520 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 521 | LIBRARY_SEARCH_PATHS = ( 522 | "$(inherited)", 523 | "$(PROJECT_DIR)/Flutter", 524 | ); 525 | PRODUCT_BUNDLE_IDENTIFIER = com.andylove.flutterVideoEditorExample; 526 | PRODUCT_NAME = "$(TARGET_NAME)"; 527 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 528 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 529 | SWIFT_VERSION = 5.0; 530 | VERSIONING_SYSTEM = "apple-generic"; 531 | }; 532 | name = Debug; 533 | }; 534 | 97C147071CF9000F007C117D /* Release */ = { 535 | isa = XCBuildConfiguration; 536 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 537 | buildSettings = { 538 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 539 | CLANG_ENABLE_MODULES = YES; 540 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 541 | ENABLE_BITCODE = NO; 542 | FRAMEWORK_SEARCH_PATHS = ( 543 | "$(inherited)", 544 | "$(PROJECT_DIR)/Flutter", 545 | ); 546 | INFOPLIST_FILE = Runner/Info.plist; 547 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 548 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 549 | LIBRARY_SEARCH_PATHS = ( 550 | "$(inherited)", 551 | "$(PROJECT_DIR)/Flutter", 552 | ); 553 | PRODUCT_BUNDLE_IDENTIFIER = com.andylove.flutterVideoEditorExample; 554 | PRODUCT_NAME = "$(TARGET_NAME)"; 555 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 556 | SWIFT_VERSION = 5.0; 557 | VERSIONING_SYSTEM = "apple-generic"; 558 | }; 559 | name = Release; 560 | }; 561 | /* End XCBuildConfiguration section */ 562 | 563 | /* Begin XCConfigurationList section */ 564 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 565 | isa = XCConfigurationList; 566 | buildConfigurations = ( 567 | 97C147031CF9000F007C117D /* Debug */, 568 | 97C147041CF9000F007C117D /* Release */, 569 | 249021D3217E4FDB00AE95B9 /* Profile */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 97C147061CF9000F007C117D /* Debug */, 578 | 97C147071CF9000F007C117D /* Release */, 579 | 249021D4217E4FDB00AE95B9 /* Profile */, 580 | ); 581 | defaultConfigurationIsVisible = 0; 582 | defaultConfigurationName = Release; 583 | }; 584 | /* End XCConfigurationList section */ 585 | }; 586 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 587 | } 588 | --------------------------------------------------------------------------------