diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist index 9625e105d..7c5696400 100644 --- a/example/ios/Flutter/AppFrameworkInfo.plist +++ b/example/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 11.0 + 12.0 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index f6781ec5d..f88b2355a 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -156,7 +156,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1430; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { @@ -343,7 +343,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -420,7 +420,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -469,7 +469,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index b52b2e698..e67b2808a 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ { ]; _chewieController = ChewieController( - videoPlayerController: _videoPlayerController1, - autoPlay: true, - looping: true, - progressIndicatorDelay: - bufferDelay != null ? Duration(milliseconds: bufferDelay!) : null, - - additionalOptions: (context) { - return [ - OptionItem( - onTap: toggleVideo, - iconData: Icons.live_tv_sharp, - title: 'Toggle Video Src', - ), - ]; - }, - subtitle: Subtitles(subtitles), - subtitleBuilder: (context, dynamic subtitle) => Container( - padding: const EdgeInsets.all(10.0), - child: subtitle is InlineSpan - ? RichText( - text: subtitle, - ) - : Text( - subtitle.toString(), - style: const TextStyle(color: Colors.black), - ), - ), - - hideControlsTimer: const Duration(seconds: 1), - - // Try playing around with some of these other options: + videoPlayerController: _videoPlayerController1, + autoPlay: true, + looping: true, + progressIndicatorDelay: + bufferDelay != null ? Duration(milliseconds: bufferDelay!) : null, + additionalOptions: (context) { + return [ + OptionItem( + onTap: toggleVideo, + iconData: Icons.live_tv_sharp, + title: 'Toggle Video Src', + ), + ]; + }, + subtitle: Subtitles(subtitles), + subtitleBuilder: (context, dynamic subtitle) => Container( + padding: const EdgeInsets.all(10.0), + child: subtitle is InlineSpan + ? RichText( + text: subtitle, + ) + : Text( + subtitle.toString(), + style: const TextStyle(color: Colors.black), + ), + ), + hideControlsTimer: const Duration(seconds: 1), + customControls: CupertinoControls( + // onTabTaggingNote: () { + // print("_--------onTabTaggingNote"); + // }, + backgroundColor: Colors.black, + iconColor: Colors.white, + ) + // Try playing around with some of these other options: - // showControls: false, - // materialProgressColors: ChewieProgressColors( - // playedColor: Colors.red, - // handleColor: Colors.blue, - // backgroundColor: Colors.grey, - // bufferedColor: Colors.lightGreen, - // ), - // placeholder: Container( - // color: Colors.grey, - // ), - // autoInitialize: true, - ); + // showControls: false, + // materialProgressColors: ChewieProgressColors( + // playedColor: Colors.red, + // handleColor: Colors.blue, + // backgroundColor: Colors.grey, + // bufferedColor: Colors.lightGreen, + // ), + // placeholder: Container( + // color: Colors.grey, + // ), + // autoInitialize: true, + ); } int currPlayIndex = 0; diff --git a/lib/src/cupertino/cupertino_controls.dart b/lib/src/cupertino/cupertino_controls.dart index b3ebc921e..82522e044 100644 --- a/lib/src/cupertino/cupertino_controls.dart +++ b/lib/src/cupertino/cupertino_controls.dart @@ -22,8 +22,8 @@ class CupertinoControls extends StatefulWidget { required this.backgroundColor, required this.iconColor, this.showPlayButton = true, - this.airPlayButton = null, - this.onTabTaggingNote = null, + this.airPlayButton, + this.onTabTaggingNote, super.key, });