Update super_editor to fix link feature

This commit is contained in:
Hillel Coren 2023-12-17 13:57:41 +02:00
parent b2f98d7f0c
commit c404fce9ef
2 changed files with 16 additions and 18 deletions

View File

@ -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<EditorToolbar> {
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.

View File

@ -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"