diff --git a/lib/utils/super_editor/toolbar.dart b/lib/utils/super_editor/toolbar.dart index c3544a846..aa61b3034 100644 --- a/lib/utils/super_editor/toolbar.dart +++ b/lib/utils/super_editor/toolbar.dart @@ -1,7 +1,6 @@ import 'dart:math'; //import 'package:example/logging.dart'; -import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; //import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:follow_the_leader/follow_the_leader.dart'; @@ -607,20 +606,19 @@ class _EditorToolbarState extends State { tooltip: 'Strikethrough', ), ), - if (kIsWeb) - Center( - child: IconButton( - onPressed: - _areMultipleLinksSelected() ? null : _onLinkPressed, - icon: const Icon(Icons.link), - color: _isSingleLinkSelected() - ? const Color(0xFF007AFF) - : IconTheme.of(context).color, - splashRadius: 16, - //tooltip: AppLocalizations.of(context)!.labelLink, - tooltip: 'Link', - ), + Center( + child: IconButton( + onPressed: + _areMultipleLinksSelected() ? null : _onLinkPressed, + icon: const Icon(Icons.link), + color: _isSingleLinkSelected() + ? const Color(0xFF007AFF) + : IconTheme.of(context).color, + splashRadius: 16, + //tooltip: AppLocalizations.of(context)!.labelLink, + tooltip: 'Link', ), + ), /* // Only display alignment controls if the currently selected text // node respects alignment. List items, for example, do not. diff --git a/pubspec.lock b/pubspec.lock index 83ed262d2..a3946b7f2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -46,7 +46,7 @@ packages: description: path: attributed_text ref: stable - resolved-ref: c040c690f1dc0f7c482d8ece02622c200cb8e1b1 + resolved-ref: "88af88145526519a1830336c83bb154ceba7235c" url: "https://github.com/superlistapp/super_editor" source: git version: "0.2.2" @@ -1532,7 +1532,7 @@ packages: description: path: super_editor ref: stable - resolved-ref: c040c690f1dc0f7c482d8ece02622c200cb8e1b1 + resolved-ref: "88af88145526519a1830336c83bb154ceba7235c" url: "https://github.com/superlistapp/super_editor" source: git version: "0.2.6" @@ -1541,7 +1541,7 @@ packages: description: path: super_editor_markdown ref: stable - resolved-ref: c040c690f1dc0f7c482d8ece02622c200cb8e1b1 + resolved-ref: "88af88145526519a1830336c83bb154ceba7235c" url: "https://github.com/superlistapp/super_editor" source: git version: "0.1.5" @@ -1550,7 +1550,7 @@ packages: description: path: super_text_layout ref: stable - resolved-ref: c040c690f1dc0f7c482d8ece02622c200cb8e1b1 + resolved-ref: "88af88145526519a1830336c83bb154ceba7235c" url: "https://github.com/superlistapp/super_editor" source: git version: "0.1.8"