Fix analysis warrnings along with a bug

pull/1634/head
Ellet 1 year ago
parent 33df05bfcc
commit 9594e79449
  1. 2
      flutter_quill_extensions/lib/embeds/image/toolbar/image_button.dart
  2. 2
      flutter_quill_extensions/lib/embeds/others/camera_button/camera_button.dart
  3. 4
      flutter_quill_extensions/lib/embeds/video/toolbar/video_button.dart
  4. 2
      lib/src/widgets/toolbar/buttons/font_size_button.dart

@ -104,6 +104,8 @@ class QuillToolbarImageButton extends StatelessWidget {
tooltip: tooltip,
isSelected: false,
onPressed: () => _sharedOnPressed(context),
iconSelectedStyle: _iconTheme(context)?.iconButtonSelectedStyle,
iconUnselectedStyle: _iconTheme(context)?.iconButtonUnselectedStyle,
);
}

@ -112,6 +112,8 @@ class QuillToolbarCameraButton extends StatelessWidget {
isSelected: false,
// isDesktop(supportWeb: false) ? null :
onPressed: () => _sharedOnPressed(context),
iconSelectedStyle: iconTheme?.iconButtonSelectedStyle,
iconUnselectedStyle: iconTheme?.iconButtonUnselectedStyle,
);
}

@ -86,7 +86,6 @@ class QuillToolbarVideoButton extends StatelessWidget {
afterButtonPressed: _afterButtonPressed(context),
iconData: iconData,
dialogTheme: options.dialogTheme,
// fillColor: iconFillColor,
iconSize: options.iconSize,
iconButtonFactor: iconButtonFactor,
linkRegExp: options.linkRegExp,
@ -106,11 +105,12 @@ class QuillToolbarVideoButton extends StatelessWidget {
icon: Icon(
iconData,
size: iconSize * iconButtonFactor,
// color: iconColor,
),
tooltip: tooltip,
isSelected: false,
onPressed: () => _sharedOnPressed(context),
iconSelectedStyle: _iconTheme(context)?.iconButtonSelectedStyle,
iconUnselectedStyle: _iconTheme(context)?.iconButtonUnselectedStyle,
);
}

@ -227,7 +227,7 @@ class QuillToolbarFontSizeButtonState
}
Widget _buildContent(BuildContext context) {
final theme = Theme.of(context);
// final theme = Theme.of(context);
final hasFinalWidth = options.width != null;
return Padding(
padding: options.padding ?? const EdgeInsets.fromLTRB(10, 0, 0, 0),

Loading…
Cancel
Save