From 899e0200268a50381536f6d2519b49d6e1191de8 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 26 Jan 2023 09:44:29 +0100 Subject: [PATCH 1/2] Fix Flutter 3.7 incompatibility Mix TextInputClient into CustomTextEditState instead of implementing all of it to avoid breaking whenever a new TextInputClient member is introduced. Fixes: #150 --- lib/src/ui/custom_text_edit.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/ui/custom_text_edit.dart b/lib/src/ui/custom_text_edit.dart index 26b9da4c..6b237019 100644 --- a/lib/src/ui/custom_text_edit.dart +++ b/lib/src/ui/custom_text_edit.dart @@ -51,8 +51,7 @@ class CustomTextEdit extends StatefulWidget { CustomTextEditState createState() => CustomTextEditState(); } -class CustomTextEditState extends State - implements TextInputClient { +class CustomTextEditState extends State with TextInputClient { TextInputConnection? _connection; @override From 20f85d29c917500ba4c62b6898f454f4242aecaa Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 26 Jan 2023 10:17:59 +0100 Subject: [PATCH 2/2] Fix the example to work with Flutter 3.7.0 MenuItem was renamed to PlatformMenuItem --- example/lib/src/platform_menu.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lib/src/platform_menu.dart b/example/lib/src/platform_menu.dart index db55916a..16af0f2c 100644 --- a/example/lib/src/platform_menu.dart +++ b/example/lib/src/platform_menu.dart @@ -20,7 +20,7 @@ class _AppPlatformMenuState extends State { } return PlatformMenuBar( - menus: [ + menus: [ PlatformMenu( label: 'TerminalStudio', menus: [