Update super_editor to fix link feature
This commit is contained in:
parent
b2f98d7f0c
commit
c404fce9ef
|
|
@ -1,7 +1,6 @@
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
//import 'package:example/logging.dart';
|
//import 'package:example/logging.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
//import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
//import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
import 'package:follow_the_leader/follow_the_leader.dart';
|
import 'package:follow_the_leader/follow_the_leader.dart';
|
||||||
|
|
@ -607,20 +606,19 @@ class _EditorToolbarState extends State<EditorToolbar> {
|
||||||
tooltip: 'Strikethrough',
|
tooltip: 'Strikethrough',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (kIsWeb)
|
Center(
|
||||||
Center(
|
child: IconButton(
|
||||||
child: IconButton(
|
onPressed:
|
||||||
onPressed:
|
_areMultipleLinksSelected() ? null : _onLinkPressed,
|
||||||
_areMultipleLinksSelected() ? null : _onLinkPressed,
|
icon: const Icon(Icons.link),
|
||||||
icon: const Icon(Icons.link),
|
color: _isSingleLinkSelected()
|
||||||
color: _isSingleLinkSelected()
|
? const Color(0xFF007AFF)
|
||||||
? const Color(0xFF007AFF)
|
: IconTheme.of(context).color,
|
||||||
: IconTheme.of(context).color,
|
splashRadius: 16,
|
||||||
splashRadius: 16,
|
//tooltip: AppLocalizations.of(context)!.labelLink,
|
||||||
//tooltip: AppLocalizations.of(context)!.labelLink,
|
tooltip: 'Link',
|
||||||
tooltip: 'Link',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
),
|
||||||
/*
|
/*
|
||||||
// Only display alignment controls if the currently selected text
|
// Only display alignment controls if the currently selected text
|
||||||
// node respects alignment. List items, for example, do not.
|
// node respects alignment. List items, for example, do not.
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: attributed_text
|
path: attributed_text
|
||||||
ref: stable
|
ref: stable
|
||||||
resolved-ref: c040c690f1dc0f7c482d8ece02622c200cb8e1b1
|
resolved-ref: "88af88145526519a1830336c83bb154ceba7235c"
|
||||||
url: "https://github.com/superlistapp/super_editor"
|
url: "https://github.com/superlistapp/super_editor"
|
||||||
source: git
|
source: git
|
||||||
version: "0.2.2"
|
version: "0.2.2"
|
||||||
|
|
@ -1532,7 +1532,7 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: super_editor
|
path: super_editor
|
||||||
ref: stable
|
ref: stable
|
||||||
resolved-ref: c040c690f1dc0f7c482d8ece02622c200cb8e1b1
|
resolved-ref: "88af88145526519a1830336c83bb154ceba7235c"
|
||||||
url: "https://github.com/superlistapp/super_editor"
|
url: "https://github.com/superlistapp/super_editor"
|
||||||
source: git
|
source: git
|
||||||
version: "0.2.6"
|
version: "0.2.6"
|
||||||
|
|
@ -1541,7 +1541,7 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: super_editor_markdown
|
path: super_editor_markdown
|
||||||
ref: stable
|
ref: stable
|
||||||
resolved-ref: c040c690f1dc0f7c482d8ece02622c200cb8e1b1
|
resolved-ref: "88af88145526519a1830336c83bb154ceba7235c"
|
||||||
url: "https://github.com/superlistapp/super_editor"
|
url: "https://github.com/superlistapp/super_editor"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.5"
|
version: "0.1.5"
|
||||||
|
|
@ -1550,7 +1550,7 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: super_text_layout
|
path: super_text_layout
|
||||||
ref: stable
|
ref: stable
|
||||||
resolved-ref: c040c690f1dc0f7c482d8ece02622c200cb8e1b1
|
resolved-ref: "88af88145526519a1830336c83bb154ceba7235c"
|
||||||
url: "https://github.com/superlistapp/super_editor"
|
url: "https://github.com/superlistapp/super_editor"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.8"
|
version: "0.1.8"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue