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, tooltip: tooltip,
isSelected: false, isSelected: false,
onPressed: () => _sharedOnPressed(context), onPressed: () => _sharedOnPressed(context),
iconSelectedStyle: _iconTheme(context)?.iconButtonSelectedStyle,
iconUnselectedStyle: _iconTheme(context)?.iconButtonUnselectedStyle,
); );
} }

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

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

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

Loading…
Cancel
Save