Release version 8.5.2

pull/1530/head v8.5.2
Ellet 1 year ago
parent 6d2f3ca442
commit 726a6529a3
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 1
      CHANGELOG.md
  2. 1
      README.md
  3. 4
      example/lib/pages/testing_home_page.dart
  4. 7
      lib/src/widgets/toolbar/toolbar.dart
  5. 2
      pubspec.yaml

@ -1,6 +1,7 @@
## [8.5.2] ## [8.5.2]
- Update `README.md` - Update `README.md`
- Feature: Allow you to add custom callback when the `QuillToolbarColorButton` pressed - Feature: Allow you to add custom callback when the `QuillToolbarColorButton` pressed
- The `QuillToolbar` is no implements `PreferredSizeWidget` so you can use it in the AppBar just like `QuillBaseToolbar`
## [8.5.1] ## [8.5.1]
- Update `README.md` - Update `README.md`

@ -95,6 +95,7 @@ Compatible versions:
| flutter_quill | flutter_quill_extensions | flutter_quill_test | | flutter_quill | flutter_quill_extensions | flutter_quill_test |
|-------------------------|--------------------------|-------------------------| |-------------------------|--------------------------|-------------------------|
| 8.5.2 | 0.6.9 | 0.0.5 |
| 8.5.1 | 0.6.7 | 0.0.5 | | 8.5.1 | 0.6.7 | 0.0.5 |
| 8.5.0 | 0.6.7 | 0.0.5 | | 8.5.0 | 0.6.7 | 0.0.5 |

@ -6,6 +6,8 @@ class TestingHomePage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return const Scaffold(); return const Scaffold(
appBar: QuillToolbar(),
);
} }
} }

@ -7,7 +7,7 @@ import '../../models/documents/attribute.dart';
import '../utils/provider.dart'; import '../utils/provider.dart';
import 'base_toolbar.dart'; import 'base_toolbar.dart';
class QuillToolbar extends StatelessWidget { class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
const QuillToolbar({ const QuillToolbar({
super.key, super.key,
this.configurations = const QuillToolbarConfigurations(), this.configurations = const QuillToolbarConfigurations(),
@ -444,4 +444,9 @@ class QuillToolbar extends StatelessWidget {
), ),
); );
} }
@override
Size get preferredSize => configurations.axis == Axis.horizontal
? const Size.fromHeight(defaultToolbarSize)
: const Size.fromWidth(defaultToolbarSize);
} }

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor built for the modern Android, iOS, web and desktop platforms. It is the WYSIWYG editor and a Quill component for Flutter. description: A rich text editor built for the modern Android, iOS, web and desktop platforms. It is the WYSIWYG editor and a Quill component for Flutter.
version: 8.5.1 version: 8.5.2
homepage: https://1o24bbs.com/c/bulletjournal/108 homepage: https://1o24bbs.com/c/bulletjournal/108
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save