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

Loading…
Cancel
Save