From 30955dca2329698a9be1bac9ee2c1a6b2f99169c Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Thu, 7 Dec 2023 22:08:02 +0800 Subject: [PATCH] chore: upgrade to flutter 3.16 --- .github/workflows/test.yml | 2 +- example/lib/pages/mobile_editor.dart | 3 +++ .../bulleted_list_block_component.dart | 2 +- .../scrollable_positioned_list/src/positioned_list.dart | 1 - .../src/scrollable_positioned_list.dart | 1 - 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab96457a3..b58f8ad4e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,7 @@ jobs: - uses: subosito/flutter-action@v2 with: channel: "stable" - flutter-version: "3.13.9" + flutter-version: "3.16.2" cache: true - name: Run tests diff --git a/example/lib/pages/mobile_editor.dart b/example/lib/pages/mobile_editor.dart index fb0869d73..78b2afe30 100644 --- a/example/lib/pages/mobile_editor.dart +++ b/example/lib/pages/mobile_editor.dart @@ -76,6 +76,9 @@ class _MobileEditorState extends State { onPaste: () => pasteCommand.execute(editorState), onSelectAll: () => selectAllCommand.execute(editorState), onLiveTextInput: null, + onLookUp: null, + onSearchWeb: null, + onShare: null, anchors: TextSelectionToolbarAnchors( primaryAnchor: anchor, ), diff --git a/lib/src/editor/block_component/bulleted_list_block_component/bulleted_list_block_component.dart b/lib/src/editor/block_component/bulleted_list_block_component/bulleted_list_block_component.dart index 3806a32b0..e0422c70f 100644 --- a/lib/src/editor/block_component/bulleted_list_block_component/bulleted_list_block_component.dart +++ b/lib/src/editor/block_component/bulleted_list_block_component/bulleted_list_block_component.dart @@ -224,7 +224,7 @@ class _BulletedListIcon extends StatelessWidget { child: Text( icon, style: textStyle, - textScaleFactor: 0.5, + textScaler: const TextScaler.linear(0.5), ), ), ); diff --git a/lib/src/flutter/scrollable_positioned_list/src/positioned_list.dart b/lib/src/flutter/scrollable_positioned_list/src/positioned_list.dart index 9c4ef6885..acad5b953 100644 --- a/lib/src/flutter/scrollable_positioned_list/src/positioned_list.dart +++ b/lib/src/flutter/scrollable_positioned_list/src/positioned_list.dart @@ -86,7 +86,6 @@ class PositionedList extends StatefulWidget { /// See [ScrollView.reverse]. final bool reverse; - /// {@template flutter.widgets.scroll_view.shrinkWrap} /// Whether the extent of the scroll view in the [scrollDirection] should be /// determined by the contents being viewed. /// diff --git a/lib/src/flutter/scrollable_positioned_list/src/scrollable_positioned_list.dart b/lib/src/flutter/scrollable_positioned_list/src/scrollable_positioned_list.dart index 9e7a97c1e..dbdb4054b 100644 --- a/lib/src/flutter/scrollable_positioned_list/src/scrollable_positioned_list.dart +++ b/lib/src/flutter/scrollable_positioned_list/src/scrollable_positioned_list.dart @@ -131,7 +131,6 @@ class ScrollablePositionedList extends StatefulWidget { /// See [ScrollView.reverse]. final bool reverse; - /// {@template flutter.widgets.scroll_view.shrinkWrap} /// Whether the extent of the scroll view in the [scrollDirection] should be /// determined by the contents being viewed. ///