Skip to content

Commit a7bb5a8

Browse files
committed
Minor cleanup from lint suggestions
1 parent 0d3f92c commit a7bb5a8

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

site/lib/src/components/common/card.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Card extends StatelessComponent {
8888
if (outlined) 'outlined-card',
8989
if (filled) 'filled-card',
9090
if (expandable) 'expandable-card',
91-
if (additionalClasses != null) additionalClasses!,
91+
?additionalClasses,
9292
].toClasses;
9393

9494
final children = [

site/lib/src/components/common/client/feedback.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class _FeedbackComponentState extends State<FeedbackComponent> {
5858
icon: 'feedback',
5959
title: 'Provide detailed feedback.',
6060
href: component.issueUrl,
61-
attributes: {'target': '_blank', 'rel': 'noopener'},
61+
attributes: const {'target': '_blank', 'rel': 'noopener'},
6262
),
6363
],
6464
_FeedbackState.unhelpful => [
@@ -67,7 +67,7 @@ final class _FeedbackComponentState extends State<FeedbackComponent> {
6767
icon: 'bug_report',
6868
title: 'Provide feedback or report an issue.',
6969
href: component.issueUrl,
70-
attributes: {'target': '_blank', 'rel': 'noopener'},
70+
attributes: const {'target': '_blank', 'rel': 'noopener'},
7171
),
7272
],
7373
},

site/lib/src/components/common/youtube_embed.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class YoutubeEmbed with CustomComponentBase {
5353
'videoid': videoId,
5454
'videotitle': videoTitle,
5555
'videoStartAt': '$startTime',
56-
if (playlistId != null) 'playlistid': playlistId,
56+
'playlistid': ?playlistId,
5757
},
5858
classes: [if (fullWidth) 'full-width'].toClasses,
5959
children: [

site/lib/src/extensions/code_block_processor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ final class CodeBlockProcessor implements PageExtension {
108108
content: processedContent,
109109
textToCopy: codeLines.copyContent,
110110
language: language,
111-
languagesToHide: {
111+
languagesToHide: const {
112112
'plaintext',
113113
'text',
114114
'console',

site/lib/src/layouts/catalog_page_layout.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ final class CatalogPageLayout extends DocLayout {
195195
? 'Rendered example of the $name Material widget.'
196196
: 'Rendered image or visualization of the $name widget.';
197197

198-
final placeholderAlt =
198+
const placeholderAlt =
199199
'Placeholder Flutter logo in place of '
200200
'missing widget image or visualization.';
201201

0 commit comments

Comments
 (0)