|
|
|
@ -6,11 +6,13 @@ import '../../../../extensions.dart' |
|
|
|
|
show UtilityWidgets, AutoFormatMultipleLinksRule; |
|
|
|
|
import '../../../extensions/quill_provider.dart'; |
|
|
|
|
import '../../../l10n/extensions/localizations.dart'; |
|
|
|
|
import '../../../l10n/widgets/localizations.dart'; |
|
|
|
|
import '../../../models/documents/attribute.dart'; |
|
|
|
|
import '../../../models/themes/quill_dialog_theme.dart'; |
|
|
|
|
import '../../../models/themes/quill_icon_theme.dart'; |
|
|
|
|
import '../../controller.dart'; |
|
|
|
|
import '../../link.dart'; |
|
|
|
|
import '../../utils/provider.dart'; |
|
|
|
|
import '../base_toolbar.dart'; |
|
|
|
|
|
|
|
|
|
/// Alternative version of [QuillToolbarLinkStyleButton]. This widget has more |
|
|
|
@ -171,7 +173,10 @@ class _QuillToolbarLinkStyleButton2State |
|
|
|
|
final textLink = await showDialog<QuillTextLink>( |
|
|
|
|
context: context, |
|
|
|
|
barrierColor: dialogBarrierColor, |
|
|
|
|
builder: (_) => LinkStyleDialog( |
|
|
|
|
builder: (_) => QuillProvider.value( |
|
|
|
|
value: context.requireQuillProvider, |
|
|
|
|
child: FlutterQuillLocalizationsWidget( |
|
|
|
|
child: LinkStyleDialog( |
|
|
|
|
dialogTheme: options.dialogTheme, |
|
|
|
|
text: initialTextLink.text, |
|
|
|
|
link: initialTextLink.link, |
|
|
|
@ -184,6 +189,8 @@ class _QuillToolbarLinkStyleButton2State |
|
|
|
|
validationMessage: options.validationMessage, |
|
|
|
|
buttonSize: options.buttonSize, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if (textLink != null) { |
|
|
|
|