Skip to content

Commit ca92190

Browse files
committed
Upgrade to 6.3.0
1 parent 640c1b4 commit ca92190

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# [6.3.0]
2+
* Support Flutter 3.7.
3+
14
# [6.2.2]
25
* Fix: nextLine getter null where no assertion.
36

example/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77

88
import device_info_plus
99
import pasteboard
10-
import path_provider_macos
10+
import path_provider_foundation
1111
import url_launcher_macos
1212

1313
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {

lib/src/widgets/raw_editor.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ class RawEditor extends StatefulWidget {
237237
State<StatefulWidget> createState() => RawEditorState();
238238
}
239239

240-
class RawEditorState extends EditorState with
240+
class RawEditorState extends EditorState
241+
with
241242
AutomaticKeepAliveClientMixin<RawEditor>,
242243
WidgetsBindingObserver,
243244
TickerProviderStateMixin<RawEditor>,
@@ -1421,12 +1422,13 @@ class RawEditorState extends EditorState with
14211422
// this is needed for Scribble (Stylus input) in Apple platforms
14221423
// and this package does not implement this feature
14231424
}
1424-
1425+
14251426
@override
1426-
void didChangeInputControl(TextInputControl? oldControl, TextInputControl? newControl) {
1427+
void didChangeInputControl(
1428+
TextInputControl? oldControl, TextInputControl? newControl) {
14271429
// TODO: implement didChangeInputControl
14281430
}
1429-
1431+
14301432
@override
14311433
void performSelector(String selectorName) {
14321434
// TODO: implement performSelector

lib/src/widgets/text_selection.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import 'dart:math' as math;
44
import 'package:flutter/foundation.dart';
55
import 'package:flutter/gestures.dart';
66
import 'package:flutter/material.dart';
7-
import 'package:flutter/rendering.dart';
87
import 'package:flutter/scheduler.dart';
98

109
import '../models/documents/nodes/node.dart';
@@ -82,7 +81,7 @@ class EditorTextSelectionOverlay {
8281
this.dragStartBehavior = DragStartBehavior.start,
8382
this.handlesVisible = false,
8483
}) {
85-
final overlay = Overlay.of(context, rootOverlay: true)!;
84+
final overlay = Overlay.of(context, rootOverlay: true);
8685

8786
_toolbarController = AnimationController(
8887
duration: const Duration(milliseconds: 150), vsync: overlay);
@@ -222,7 +221,7 @@ class EditorTextSelectionOverlay {
222221
void showToolbar() {
223222
assert(toolbar == null);
224223
toolbar = OverlayEntry(builder: _buildToolbar);
225-
Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)!
224+
Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)
226225
.insert(toolbar!);
227226
_toolbarController.forward(from: 0);
228227

@@ -407,7 +406,7 @@ class EditorTextSelectionOverlay {
407406
_buildHandle(context, _TextSelectionHandlePosition.END)),
408407
];
409408

410-
Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)!
409+
Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)
411410
.insertAll(_handles!);
412411
}
413412

lib/src/widgets/toolbar/arrow_indicated_button_list.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ class _ArrowIndicatedButtonListState extends State<ArrowIndicatedButtonList>
120120

121121
/// ScrollBehavior without the Material glow effect.
122122
class _NoGlowBehavior extends ScrollBehavior {
123-
@override
124123
Widget buildViewportChrome(BuildContext _, Widget child, AxisDirection __) {
125124
return child;
126125
}

lib/src/widgets/toolbar/quill_font_family_button.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ class _QuillFontFamilyButtonState extends State<QuillFontFamilyButton> {
109109
void _showMenu() {
110110
final popupMenuTheme = PopupMenuTheme.of(context);
111111
final button = context.findRenderObject() as RenderBox;
112-
final overlay =
113-
Overlay.of(context)!.context.findRenderObject() as RenderBox;
112+
final overlay = Overlay.of(context).context.findRenderObject() as RenderBox;
114113
final position = RelativeRect.fromRect(
115114
Rect.fromPoints(
116115
button.localToGlobal(Offset.zero, ancestor: overlay),

lib/src/widgets/toolbar/quill_font_size_button.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ class _QuillFontSizeButtonState extends State<QuillFontSizeButton> {
110110
void _showMenu() {
111111
final popupMenuTheme = PopupMenuTheme.of(context);
112112
final button = context.findRenderObject() as RenderBox;
113-
final overlay =
114-
Overlay.of(context)!.context.findRenderObject() as RenderBox;
113+
final overlay = Overlay.of(context).context.findRenderObject() as RenderBox;
115114
final position = RelativeRect.fromRect(
116115
Rect.fromPoints(
117116
button.localToGlobal(Offset.zero, ancestor: overlay),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_quill
22
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
3-
version: 6.2.2
3+
version: 6.3.0
44
#author: bulletjournal
55
homepage: https://bulletjournal.us/home/index.html
66
repository: https://github.com/singerdmx/flutter-quill

0 commit comments

Comments
 (0)