Remove deprecated `toolbarHeight` in `QuillToolbar`

pull/1101/head
Adil Hanney 2 years ago
parent 1b073c0aff
commit d10a98c6e2
No known key found for this signature in database
GPG Key ID: 27A0885BC5740457
  1. 12
      lib/src/widgets/toolbar.dart

@ -43,12 +43,10 @@ const double kDefaultIconSize = 18;
const double kIconButtonFactor = 1.77;
class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
QuillToolbar({
const QuillToolbar({
required this.children,
this.axis = Axis.horizontal,
@Deprecated('Use toolbarSize instead')
double? toolbarHeight,
double? toolbarSize,
this.toolbarSize = 36,
this.toolbarIconAlignment = WrapAlignment.center,
this.toolbarSectionSpacing = 4,
this.multiRowsDisplay = true,
@ -57,9 +55,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
this.locale,
VoidCallback? afterButtonPressed,
Key? key,
}) : super(key: key) {
this.toolbarSize = toolbarSize ?? toolbarHeight ?? 36;
}
}) : super(key: key);
factory QuillToolbar.basic({
required QuillController controller,
@ -512,7 +508,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
final List<Widget> children;
final Axis axis;
late final double toolbarSize;
final double toolbarSize;
final double toolbarSectionSpacing;
final WrapAlignment toolbarIconAlignment;
final bool multiRowsDisplay;

Loading…
Cancel
Save