Update quill_icon_button.dart

pull/1592/head
mark8044 1 year ago committed by GitHub
parent e8f812d4ba
commit ffb2d501ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/src/widgets/toolbar/buttons/quill_icon_button.dart

@ -23,12 +23,12 @@ class QuillToolbarIconButton extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (isFilled) { if (isFilled) {
return IconButton.filled( return IconButton.filled(
padding: (padding != null) ? padding : null, padding: padding,
constraints: BoxConstraints(), constraints: BoxConstraints(),
onPressed: onPressed, icon: icon); onPressed: onPressed, icon: icon);
} }
return IconButton( return IconButton(
padding: (padding != null) ? padding : null, padding: padding,
constraints: BoxConstraints(), constraints: BoxConstraints(),
onPressed: () { onPressed: () {
onPressed?.call(); onPressed?.call();

Loading…
Cancel
Save