Upgrade to 6.3.0

pull/1070/head
X Code 2 years ago
parent 640c1b4990
commit ca921905e4
  1. 3
      CHANGELOG.md
  2. 2
      example/macos/Flutter/GeneratedPluginRegistrant.swift
  3. 10
      lib/src/widgets/raw_editor.dart
  4. 7
      lib/src/widgets/text_selection.dart
  5. 1
      lib/src/widgets/toolbar/arrow_indicated_button_list.dart
  6. 3
      lib/src/widgets/toolbar/quill_font_family_button.dart
  7. 3
      lib/src/widgets/toolbar/quill_font_size_button.dart
  8. 2
      pubspec.yaml

@ -1,3 +1,6 @@
# [6.3.0]
* Support Flutter 3.7.
# [6.2.2] # [6.2.2]
* Fix: nextLine getter null where no assertion. * Fix: nextLine getter null where no assertion.

@ -7,7 +7,7 @@ import Foundation
import device_info_plus import device_info_plus
import pasteboard import pasteboard
import path_provider_macos import path_provider_foundation
import url_launcher_macos import url_launcher_macos
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {

@ -237,7 +237,8 @@ class RawEditor extends StatefulWidget {
State<StatefulWidget> createState() => RawEditorState(); State<StatefulWidget> createState() => RawEditorState();
} }
class RawEditorState extends EditorState with class RawEditorState extends EditorState
with
AutomaticKeepAliveClientMixin<RawEditor>, AutomaticKeepAliveClientMixin<RawEditor>,
WidgetsBindingObserver, WidgetsBindingObserver,
TickerProviderStateMixin<RawEditor>, TickerProviderStateMixin<RawEditor>,
@ -1421,12 +1422,13 @@ class RawEditorState extends EditorState with
// this is needed for Scribble (Stylus input) in Apple platforms // this is needed for Scribble (Stylus input) in Apple platforms
// and this package does not implement this feature // and this package does not implement this feature
} }
@override @override
void didChangeInputControl(TextInputControl? oldControl, TextInputControl? newControl) { void didChangeInputControl(
TextInputControl? oldControl, TextInputControl? newControl) {
// TODO: implement didChangeInputControl // TODO: implement didChangeInputControl
} }
@override @override
void performSelector(String selectorName) { void performSelector(String selectorName) {
// TODO: implement performSelector // TODO: implement performSelector

@ -4,7 +4,6 @@ import 'dart:math' as math;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.dart'; import 'package:flutter/scheduler.dart';
import '../models/documents/nodes/node.dart'; import '../models/documents/nodes/node.dart';
@ -82,7 +81,7 @@ class EditorTextSelectionOverlay {
this.dragStartBehavior = DragStartBehavior.start, this.dragStartBehavior = DragStartBehavior.start,
this.handlesVisible = false, this.handlesVisible = false,
}) { }) {
final overlay = Overlay.of(context, rootOverlay: true)!; final overlay = Overlay.of(context, rootOverlay: true);
_toolbarController = AnimationController( _toolbarController = AnimationController(
duration: const Duration(milliseconds: 150), vsync: overlay); duration: const Duration(milliseconds: 150), vsync: overlay);
@ -222,7 +221,7 @@ class EditorTextSelectionOverlay {
void showToolbar() { void showToolbar() {
assert(toolbar == null); assert(toolbar == null);
toolbar = OverlayEntry(builder: _buildToolbar); toolbar = OverlayEntry(builder: _buildToolbar);
Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)! Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)
.insert(toolbar!); .insert(toolbar!);
_toolbarController.forward(from: 0); _toolbarController.forward(from: 0);
@ -407,7 +406,7 @@ class EditorTextSelectionOverlay {
_buildHandle(context, _TextSelectionHandlePosition.END)), _buildHandle(context, _TextSelectionHandlePosition.END)),
]; ];
Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)! Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)
.insertAll(_handles!); .insertAll(_handles!);
} }

@ -120,7 +120,6 @@ class _ArrowIndicatedButtonListState extends State<ArrowIndicatedButtonList>
/// ScrollBehavior without the Material glow effect. /// ScrollBehavior without the Material glow effect.
class _NoGlowBehavior extends ScrollBehavior { class _NoGlowBehavior extends ScrollBehavior {
@override
Widget buildViewportChrome(BuildContext _, Widget child, AxisDirection __) { Widget buildViewportChrome(BuildContext _, Widget child, AxisDirection __) {
return child; return child;
} }

@ -109,8 +109,7 @@ class _QuillFontFamilyButtonState extends State<QuillFontFamilyButton> {
void _showMenu() { void _showMenu() {
final popupMenuTheme = PopupMenuTheme.of(context); final popupMenuTheme = PopupMenuTheme.of(context);
final button = context.findRenderObject() as RenderBox; final button = context.findRenderObject() as RenderBox;
final overlay = final overlay = Overlay.of(context).context.findRenderObject() as RenderBox;
Overlay.of(context)!.context.findRenderObject() as RenderBox;
final position = RelativeRect.fromRect( final position = RelativeRect.fromRect(
Rect.fromPoints( Rect.fromPoints(
button.localToGlobal(Offset.zero, ancestor: overlay), button.localToGlobal(Offset.zero, ancestor: overlay),

@ -110,8 +110,7 @@ class _QuillFontSizeButtonState extends State<QuillFontSizeButton> {
void _showMenu() { void _showMenu() {
final popupMenuTheme = PopupMenuTheme.of(context); final popupMenuTheme = PopupMenuTheme.of(context);
final button = context.findRenderObject() as RenderBox; final button = context.findRenderObject() as RenderBox;
final overlay = final overlay = Overlay.of(context).context.findRenderObject() as RenderBox;
Overlay.of(context)!.context.findRenderObject() as RenderBox;
final position = RelativeRect.fromRect( final position = RelativeRect.fromRect(
Rect.fromPoints( Rect.fromPoints(
button.localToGlobal(Offset.zero, ancestor: overlay), button.localToGlobal(Offset.zero, ancestor: overlay),

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 6.2.2 version: 6.3.0
#author: bulletjournal #author: bulletjournal
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save