Skip to content

Commit 9594e79

Browse files
author
Ellet
committed
Fix analysis warrnings along with a bug
1 parent 33df05b commit 9594e79

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

flutter_quill_extensions/lib/embeds/image/toolbar/image_button.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ class QuillToolbarImageButton extends StatelessWidget {
104104
tooltip: tooltip,
105105
isSelected: false,
106106
onPressed: () => _sharedOnPressed(context),
107+
iconSelectedStyle: _iconTheme(context)?.iconButtonSelectedStyle,
108+
iconUnselectedStyle: _iconTheme(context)?.iconButtonUnselectedStyle,
107109
);
108110
}
109111

flutter_quill_extensions/lib/embeds/others/camera_button/camera_button.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class QuillToolbarCameraButton extends StatelessWidget {
112112
isSelected: false,
113113
// isDesktop(supportWeb: false) ? null :
114114
onPressed: () => _sharedOnPressed(context),
115+
iconSelectedStyle: iconTheme?.iconButtonSelectedStyle,
116+
iconUnselectedStyle: iconTheme?.iconButtonUnselectedStyle,
115117
);
116118
}
117119

flutter_quill_extensions/lib/embeds/video/toolbar/video_button.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class QuillToolbarVideoButton extends StatelessWidget {
8686
afterButtonPressed: _afterButtonPressed(context),
8787
iconData: iconData,
8888
dialogTheme: options.dialogTheme,
89-
// fillColor: iconFillColor,
9089
iconSize: options.iconSize,
9190
iconButtonFactor: iconButtonFactor,
9291
linkRegExp: options.linkRegExp,
@@ -106,11 +105,12 @@ class QuillToolbarVideoButton extends StatelessWidget {
106105
icon: Icon(
107106
iconData,
108107
size: iconSize * iconButtonFactor,
109-
// color: iconColor,
110108
),
111109
tooltip: tooltip,
112110
isSelected: false,
113111
onPressed: () => _sharedOnPressed(context),
112+
iconSelectedStyle: _iconTheme(context)?.iconButtonSelectedStyle,
113+
iconUnselectedStyle: _iconTheme(context)?.iconButtonUnselectedStyle,
114114
);
115115
}
116116

lib/src/widgets/toolbar/buttons/font_size_button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class QuillToolbarFontSizeButtonState
227227
}
228228

229229
Widget _buildContent(BuildContext context) {
230-
final theme = Theme.of(context);
230+
// final theme = Theme.of(context);
231231
final hasFinalWidth = options.width != null;
232232
return Padding(
233233
padding: options.padding ?? const EdgeInsets.fromLTRB(10, 0, 0, 0),

0 commit comments

Comments
 (0)