diff --git a/.github/workflows/fleather.yml b/.github/workflows/fleather.yml
index f4809bb0..6917494b 100644
--- a/.github/workflows/fleather.yml
+++ b/.github/workflows/fleather.yml
@@ -10,10 +10,10 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
- flutter-version: "3.3.2"
+ flutter-version: "3.7.0"
cache: true
# Manually Update this `key`
- cache-key: "20221011"
+ cache-key: "20230126"
- run: dart pub global activate coverage
#
@@ -52,7 +52,7 @@ jobs:
- name: Fleather - Analyze project source
working-directory: ./packages/fleather
- run: flutter analyze --fatal-infos
+ run: flutter analyze --no-fatal-infos
- name: Fleather - Run tests
working-directory: ./packages/fleather
diff --git a/packages/fleather/example/ios/Flutter/AppFrameworkInfo.plist b/packages/fleather/example/ios/Flutter/AppFrameworkInfo.plist
index f2872cf4..4f8d4d24 100644
--- a/packages/fleather/example/ios/Flutter/AppFrameworkInfo.plist
+++ b/packages/fleather/example/ios/Flutter/AppFrameworkInfo.plist
@@ -21,6 +21,6 @@
CFBundleVersion
1.0
MinimumOSVersion
- 9.0
+ 11.0
diff --git a/packages/fleather/example/ios/Podfile b/packages/fleather/example/ios/Podfile
index 1e8c3c90..88359b22 100644
--- a/packages/fleather/example/ios/Podfile
+++ b/packages/fleather/example/ios/Podfile
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
-# platform :ios, '9.0'
+# platform :ios, '11.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
diff --git a/packages/fleather/example/ios/Podfile.lock b/packages/fleather/example/ios/Podfile.lock
index 6bb8168c..eb2c438b 100644
--- a/packages/fleather/example/ios/Podfile.lock
+++ b/packages/fleather/example/ios/Podfile.lock
@@ -14,9 +14,9 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/url_launcher_ios/ios"
SPEC CHECKSUMS:
- Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
- url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
+ Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
+ url_launcher_ios: ae1517e5e344f5544fb090b079e11f399dfbe4d2
-PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
+PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
COCOAPODS: 1.11.3
diff --git a/packages/fleather/example/ios/Runner.xcodeproj/project.pbxproj b/packages/fleather/example/ios/Runner.xcodeproj/project.pbxproj
index dc41cd8f..a62b94e9 100644
--- a/packages/fleather/example/ios/Runner.xcodeproj/project.pbxproj
+++ b/packages/fleather/example/ios/Runner.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 50;
+ objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
@@ -208,6 +208,7 @@
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
@@ -222,6 +223,7 @@
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
@@ -349,7 +351,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
@@ -434,7 +436,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -483,7 +485,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
diff --git a/packages/fleather/example/ios/Runner/Info.plist b/packages/fleather/example/ios/Runner/Info.plist
index 1579fb30..4f68a2ce 100644
--- a/packages/fleather/example/ios/Runner/Info.plist
+++ b/packages/fleather/example/ios/Runner/Info.plist
@@ -43,5 +43,7 @@
CADisableMinimumFrameDurationOnPhone
+ UIApplicationSupportsIndirectInputEvents
+
diff --git a/packages/fleather/example/macos/Podfile b/packages/fleather/example/macos/Podfile
index dade8dfa..049abe29 100644
--- a/packages/fleather/example/macos/Podfile
+++ b/packages/fleather/example/macos/Podfile
@@ -1,4 +1,4 @@
-platform :osx, '10.11'
+platform :osx, '10.14'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
diff --git a/packages/fleather/example/macos/Podfile.lock b/packages/fleather/example/macos/Podfile.lock
index 137814e2..c9a64034 100644
--- a/packages/fleather/example/macos/Podfile.lock
+++ b/packages/fleather/example/macos/Podfile.lock
@@ -14,9 +14,9 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos
SPEC CHECKSUMS:
- FlutterMacOS: ae6af50a8ea7d6103d888583d46bd8328a7e9811
- url_launcher_macos: 597e05b8e514239626bcf4a850fcf9ef5c856ec3
+ FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
+ url_launcher_macos: c04e4fa86382d4f94f6b38f14625708be3ae52e2
-PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
+PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7
COCOAPODS: 1.11.3
diff --git a/packages/fleather/example/macos/Runner.xcodeproj/project.pbxproj b/packages/fleather/example/macos/Runner.xcodeproj/project.pbxproj
index 7a76f974..9625a86d 100644
--- a/packages/fleather/example/macos/Runner.xcodeproj/project.pbxproj
+++ b/packages/fleather/example/macos/Runner.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 51;
+ objectVersion = 54;
objects = {
/* Begin PBXAggregateTarget section */
@@ -203,7 +203,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
- LastUpgradeCheck = 0930;
+ LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "The Flutter Authors";
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
@@ -256,6 +256,7 @@
/* Begin PBXShellScriptBuildPhase section */
3399D490228B24CF009A79C7 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
@@ -405,7 +406,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.11;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
@@ -488,7 +489,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.11;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
@@ -535,7 +536,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.11;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
diff --git a/packages/fleather/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/fleather/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
index df12c333..ad089fa5 100644
--- a/packages/fleather/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ b/packages/fleather/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -1,6 +1,6 @@
extends State> {
void _showMenu() {
final popupMenuTheme = PopupMenuTheme.of(context);
final button = context.findRenderObject() as RenderBox;
- final overlay =
- Overlay.of(context)!.context.findRenderObject() as RenderBox;
+ final overlay = Overlay.of(context).context.findRenderObject() as RenderBox;
final position = RelativeRect.fromRect(
Rect.fromPoints(
button.localToGlobal(Offset.zero, ancestor: overlay),
diff --git a/packages/fleather/lib/src/widgets/text_selection.dart b/packages/fleather/lib/src/widgets/text_selection.dart
index f56b6de3..34ddb3b0 100644
--- a/packages/fleather/lib/src/widgets/text_selection.dart
+++ b/packages/fleather/lib/src/widgets/text_selection.dart
@@ -50,14 +50,9 @@ class EditorTextSelectionOverlay {
bool handlesVisible = false,
}) : _handlesVisible = handlesVisible,
_value = value {
- final OverlayState? overlay = Overlay.of(context, rootOverlay: true);
- assert(
- overlay != null,
- 'No Overlay widget exists above $context.\n'
- 'Usually the Navigator created by WidgetsApp provides the overlay. Perhaps your '
- 'app content was created above the Navigator with the WidgetsApp builder parameter.');
+ final OverlayState overlay = Overlay.of(context, rootOverlay: true);
_toolbarController =
- AnimationController(duration: fadeDuration, vsync: overlay!);
+ AnimationController(duration: fadeDuration, vsync: overlay);
}
/// The context in which the selection handles should appear.
@@ -189,7 +184,7 @@ class EditorTextSelectionOverlay {
_buildHandle(context, _TextSelectionHandlePosition.end)),
];
- Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)!
+ Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)
.insertAll(_handles!);
}
@@ -206,7 +201,7 @@ class EditorTextSelectionOverlay {
void showToolbar() {
assert(_toolbar == null);
_toolbar = OverlayEntry(builder: _buildToolbar);
- Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)!
+ Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)
.insert(_toolbar!);
_toolbarController.forward(from: 0.0);
}