Skip to content

Commit af44163

Browse files
Fix flutter version bug
1 parent 59f33fd commit af44163

6 files changed

Lines changed: 414 additions & 787 deletions

File tree

lib/Widgets/Item/item_builder.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2275,9 +2275,7 @@ class ItemBuilder {
22752275
} else {
22762276
return MyDesktopTextSelectionToolbar(
22772277
anchor: details.contextMenuAnchors.primaryAnchor,
2278-
decoration:BoxDecoration(
2279-
color: Theme.of(contextMenuContext).canvasColor,
2280-
),
2278+
backgroundColor: Theme.of(context).canvasColor,
22812279
dividerColor: Theme.of(context).dividerColor,
22822280
items: items,
22832281
);
@@ -2346,9 +2344,7 @@ class ItemBuilder {
23462344
} else {
23472345
return MyDesktopTextSelectionToolbar(
23482346
anchor: details.contextMenuAnchors.primaryAnchor,
2349-
decoration:BoxDecoration(
2350-
color: Theme.of(contextMenuContext).canvasColor,
2351-
),
2347+
backgroundColor: Theme.of(contextMenuContext).canvasColor,
23522348
dividerColor: Theme.of(contextMenuContext).dividerColor,
23532349
items: items,
23542350
);

lib/Widgets/Selectable/my_adaptive_text_selection_toolbar.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ import 'my_selectable_region.dart';
4343
/// widget but only for Cupertino context menus.
4444
/// * [TextSelectionToolbar], the default toolbar for Android.
4545
/// * [DesktopTextSelectionToolbar], the default toolbar for desktop platforms
46-
/// other than MacOChewieS.
47-
/// * [CupertinoTextSelectionToolbar], the default toolbar for iOChewieS.
48-
/// * [CupertinoDesktopTextSelectionToolbar], the default toolbar for MacOChewieS.
46+
/// other than MacOS.
47+
/// * [CupertinoTextSelectionToolbar], the default toolbar for iOS.
48+
/// * [CupertinoDesktopTextSelectionToolbar], the default toolbar for MacOS.
4949
class MyAdaptiveTextSelectionToolbar extends StatelessWidget {
5050
/// Create an instance of [MyAdaptiveTextSelectionToolbar] with the
5151
/// given [children].

0 commit comments

Comments
 (0)