pull/1640/head
Ellet 1 year ago
parent e4dcbac9cf
commit e7bddb1f3b
  1. 3
      CHANGELOG.md
  2. 12
      lib/src/widgets/toolbar/buttons/search/search_dialog.dart

@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
## 9.1.1
* Fix bug [#1636](https://github.com/singerdmx/flutter-quill/issues/1636)
## 9.1.0
* Fix the simple toolbar by add properties of `IconButton` and fix some buttons

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import '../../../../l10n/extensions/localizations.dart';
import '../../../../l10n/widgets/localizations.dart';
import '../../../../models/documents/document.dart';
import '../../../../models/themes/quill_dialog_theme.dart';
import '../../../quill/quill_controller.dart';
@ -116,7 +117,10 @@ class QuillToolbarSearchDialogState extends State<QuillToolbarSearchDialog> {
backgroundColor: widget.dialogTheme?.dialogBackgroundColor,
alignment: Alignment.bottomCenter,
insetPadding: EdgeInsets.zero,
child: SizedBox(
child: FlutterQuillLocalizationsWidget(
child: Builder(
builder: (context) {
return SizedBox(
height: 45,
child: Row(
children: [
@ -179,7 +183,8 @@ class QuillToolbarSearchDialogState extends State<QuillToolbarSearchDialog> {
IconButton(
icon: const Icon(Icons.keyboard_arrow_up),
tooltip: context.loc.moveToPreviousOccurrence,
onPressed: (_offsets!.isNotEmpty) ? _moveToPrevious : null,
onPressed:
(_offsets!.isNotEmpty) ? _moveToPrevious : null,
),
if (_offsets != null)
IconButton(
@ -189,6 +194,9 @@ class QuillToolbarSearchDialogState extends State<QuillToolbarSearchDialog> {
),
],
),
);
},
),
),
);
}

Loading…
Cancel
Save