Releases: singerdmx/flutter-quill
v11.0.0-dev.2
Changed
- Restore base button options, now works without the inherited widgets, and support buttons of .
v11.0.0-dev.1
This release is identical to 11.0.0-dev.0, mainly published to update the min published version (from pub.dev) of flutter_quill
in flutter_quill_test
and flutter_quill_extensions
.
See the migration guide.
Full Changelog: v11.0.0-dev.0...v11.0.0-dev.1
v11.0.0-dev.0
- fix!: remove super_clipboard from flutter_quill_extensions and move it to quill_super_clipboard by @EchoEllet in #2322
- fix(ios): link menu action Cupertino modal popup now does NOT use root nav by @Zambrella in #2332
New Contributors
- @Zambrella made their first contribution in #2332
Full Changelog: v10.8.5...v11.0.0-dev.0
v10.8.5
- fix: allow all correct URLs to be formatted by @orevial in #2328
- fix(macos): Implement actions for ExpandSelectionToDocumentBoundaryIntent and ExpandSelectionToLineBreakIntent to use keyboard shortcuts, unrelated cleanup to the bug fix. by @EchoEllet in #2279
New Contributors
Full Changelog: v10.8.4...v10.8.5
v10.8.4
- Fixes an unhandled exception in case
getClipboardFiles()
wasn't supported - Updates min version of internal dependency
quill_native_bridge
Full Changelog: v10.8.3...v10.8.4
v10.8.3
This release is identical to v10.8.3-dev.0, mainly published to bump the minimum version of flutter_quill in flutter_quill_extensions and to publish quill-super-clipboard.
A new identical release 10.9.0
will be published soon with a release description.
Full Changelog: v10.8.2...v10.8.3
v10.8.3-dev.0
A non-pre-release version with this change will be published soon.
- feat: Use quill_native_bridge as default impl in DefaultClipboardService, fix related bugs in the extensions package by @EchoEllet in #2230
Full Changelog: v10.8.2...v10.8.3-dev.0
v10.8.2
v10.8.1
-
This release fixes the compilation issue when building the project with Flutter/Wasm target on the web. Also, update the conditional import check to avoid using
dart.library.html
:import 'web/quill_controller_web_stub.dart' if (dart.library.html) 'web/quill_controller_web_real.dart';
To fix critical bugs that prevent using the editor on Wasm.
Flutter/Wasm is stable as of Flutter 3.22 though it's likely that you might experience some issues when using this new target, if you experienced any issues related to Wasm support related to Flutter Quill, feel free to open an issue.
Issue #1889 is fixed by temporarily replacing the plugin flutter_keyboard_visibility with flutter_keyboard_visibility_temp_fork since
flutter_keyboard_visibility
depend ondart:html
. Also updated thecompileSdkVersion
to34
instead of31
as a workaround to Flutter #63533. -
Support for Hungarian (hu) localization was added by @G-Greg in #2291.
-
dart_quill_delta has been moved to FlutterQuill/dart-quill-delta (outside of this repo) and they have separated version now.
New Contributors
Full Changelog: v10.8.0...v10.8.1
v10.8.0
Caution
This release can be minor breaking change for flutter_quill_extensions
users as it remove the built-in support for loading YouTube videos
If you're using flutter_quill_extensions then this release, can be a breaking change for you if you load videos in the editor and expect YouTube videos to be supported, youtube_player_flutter and flutter_inappwebview are no longer dependencies of the extensions package, which are used to support loading YouTube Iframe videos on non-web platforms, more details about the discussion and reasons in #2286 and #2284.
We have added an experimental property that gives you more flexibility and control about the implementation you want to use for loading videos.
Warning
It's likely to experience some common issues while implementing this feature, especially on desktop platforms as the support for flutter_inappwebview_windows and flutter_inappwebview_macos before 2 days. Some of the issues are in the Flutter Quill editor.
If you want loading YouTube videos to be a feature again with the latest version of Flutter Quill, you can use an existing plugin or package, or implement your own solution. For example, you might use youtube_video_player
or youtube_player_flutter
, which was previously used in flutter_quill_extensions
.
Here’s an example setup using youtube_player_flutter
:
flutter pub add youtube_player_flutter
Example widget configuration:
import 'package:flutter/material.dart';
import 'package:youtube_player_flutter/youtube_player_flutter.dart';
class YoutubeVideoPlayer extends StatefulWidget {
const YoutubeVideoPlayer({required this.videoUrl, super.key});
final String videoUrl;
@override
State<YoutubeVideoPlayer> createState() => _YoutubeVideoPlayerState();
}
class _YoutubeVideoPlayerState extends State<YoutubeVideoPlayer> {
late final YoutubePlayerController _youtubePlayerController;
@override
void initState() {
super.initState();
_youtubePlayerController = YoutubePlayerController(
initialVideoId: YoutubePlayer.convertUrlToId(widget.videoUrl) ??
(throw StateError('Expect a valid video URL')),
flags: const YoutubePlayerFlags(
autoPlay: true,
mute: true,
),
);
}
@override
Widget build(BuildContext context) {
return YoutubePlayer(
controller: _youtubePlayerController,
showVideoProgressIndicator: true,
);
}
@override
void dispose() {
_youtubePlayerController.dispose();
super.dispose();
}
}
Then, integrate it with QuillEditorVideoEmbedConfigurations
FlutterQuillEmbeds.editorBuilders(
videoEmbedConfigurations: QuillEditorVideoEmbedConfigurations(
customVideoBuilder: (videoUrl, readOnly) {
// Example: Check for YouTube Video URL and return your
// YouTube video widget here.
bool isYouTubeUrl(String videoUrl) {
try {
final uri = Uri.parse(videoUrl);
return uri.host == 'www.youtube.com' ||
uri.host == 'youtube.com' ||
uri.host == 'youtu.be' ||
uri.host == 'www.youtu.be';
} catch (_) {
return false;
}
}
if (isYouTubeUrl(videoUrl)) {
return YoutubeVideoPlayer(
videoUrl: videoUrl,
);
}
// Return null to fallback to the default logic
return null;
},
ignoreYouTubeSupport: true,
),
);
Note
This example illustrates a basic approach, additional adjustments might be necessary to meet your specific needs. YouTube video support is no longer included in this project. Keep in mind that customVideoBuilder
is experimental and can change without being considered as breaking change. More details in breaking changes section.
super_clipboard
will also be no longer a dependency of flutter_quill_extensions
once PR #2230 is ready.
We're looking forward to your feedback.
Full Changelog: v10.7.7...v10.8.0