Skip to content

Commit 71eccc2

Browse files
committed
fix: fix lint warnings on wildcard variables
Since dart 3.7
1 parent e5925cd commit 71eccc2

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

lib/features/homepage/view/homepage_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class _HomepagePageState extends State<HomepagePage> {
191191
tooltip: context.t.homepage.showMoreUserOperationsTip,
192192
onPressed: () async => showHeroDialog(
193193
context,
194-
(context, _, __) => UserOperationDialog(
194+
(context, _, _) => UserOperationDialog(
195195
username: username,
196196
avatarUrl: avatarUrl,
197197
heroTag: username,

lib/features/notification/view/notification_page.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class _NotificationPageState extends State<NotificationPage> with SingleTickerPr
116116
itemCount: n.length,
117117
itemBuilder: (_, idx) =>
118118
NoticeCardV2(key: ValueKey('NOTICE_${n.elementAt(idx).id}'), n.elementAt(idx)),
119-
separatorBuilder: (_, __) => sizedBoxW4H4,
119+
separatorBuilder: (_, _) => sizedBoxW4H4,
120120
),
121121
),
122122
EasyRefresh.builder(
@@ -131,7 +131,7 @@ class _NotificationPageState extends State<NotificationPage> with SingleTickerPr
131131
itemCount: pm.length,
132132
itemBuilder: (_, idx) =>
133133
PersonalMessageCardV2(key: ValueKey('PM_${n.elementAt(idx).id}'), pm.elementAt(idx)),
134-
separatorBuilder: (_, __) => sizedBoxW4H4,
134+
separatorBuilder: (_, _) => sizedBoxW4H4,
135135
),
136136
),
137137
EasyRefresh.builder(
@@ -146,7 +146,7 @@ class _NotificationPageState extends State<NotificationPage> with SingleTickerPr
146146
itemCount: bm.length,
147147
itemBuilder: (_, idx) =>
148148
BroadcastMessageCardV2(key: ValueKey('BM_${n.elementAt(idx).id}'), bm.elementAt(idx)),
149-
separatorBuilder: (_, __) => sizedBoxW4H4,
149+
separatorBuilder: (_, _) => sizedBoxW4H4,
150150
),
151151
),
152152
],

lib/features/points/views/points_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class _PointsPageState extends State<PointsPage> with SingleTickerProviderStateM
112112
padding: edgeInsetsL12T4R12.add(context.safePadding()),
113113
itemCount: state.fullChangelog.length,
114114
itemBuilder: (_, index) => PointsChangeCard(state.fullChangelog[index]),
115-
separatorBuilder: (_, __) => sizedBoxW4H4,
115+
separatorBuilder: (_, _) => sizedBoxW4H4,
116116
),
117117
);
118118

lib/features/thread_visit_history/view/thread_visit_history_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class _BodyState extends State<_Body> {
9090
itemBuilder: (context, index) {
9191
return ThreadVisitHistoryCard(widget.models[index]);
9292
},
93-
separatorBuilder: (_, __) => sizedBoxW4H4,
93+
separatorBuilder: (_, _) => sizedBoxW4H4,
9494
);
9595
},
9696
);

lib/widgets/card/post_card/post_card.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class _PostCardState extends State<PostCard> with AutomaticKeepAliveClientMixin
165165
},
166166
child: Hero(
167167
tag: nameHeroTag,
168-
flightShuttleBuilder: (_, __, ___, ____, toHeroContext) =>
168+
flightShuttleBuilder: (_, _, _, _, toHeroContext) =>
169169
DefaultTextStyle(style: DefaultTextStyle.of(toHeroContext).style, child: toHeroContext.widget),
170170
child: Text(widget.post.author.name, style: TextStyle(color: Theme.of(context).colorScheme.primary)),
171171
),

lib/widgets/card/post_card/show_user_brief_profile_dialog.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Future<void> showUserBriefProfileDialog(
4242
}) async {
4343
await showHeroDialog<void>(
4444
context,
45-
(context, _, __) => _UserBriefProfileDialog(
45+
(context, _, _) => _UserBriefProfileDialog(
4646
userBriefProfile,
4747
userSpaceUrl,
4848
avatarHeroTag,
@@ -154,7 +154,7 @@ class _UserBriefProfileDialogState extends State<_UserBriefProfileDialog> {
154154
// ref: https://github.com/flutter/flutter/issues/30647#issuecomment-480980280
155155
Hero(
156156
tag: widget.nameHeroTag,
157-
flightShuttleBuilder: (_, __, ___, ____, toHeroContext) =>
157+
flightShuttleBuilder: (_, _, _, _, toHeroContext) =>
158158
DefaultTextStyle(style: DefaultTextStyle.of(toHeroContext).style, child: toHeroContext.widget),
159159
child: Text(widget.profile.username, style: textTheme.titleLarge?.copyWith(color: primaryColor)),
160160
),

lib/widgets/heroes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class _HeroUserAvatarState extends State<HeroUserAvatar> {
128128
}
129129
return Hero(
130130
tag: widget.heroTag ?? 'UserAvatar_${widget.username}',
131-
flightShuttleBuilder: (_, __, ___, ____, toHeroContext) =>
131+
flightShuttleBuilder: (_, _, _, _, toHeroContext) =>
132132
DefaultTextStyle(style: DefaultTextStyle.of(toHeroContext).style, child: toHeroContext.widget),
133133
child: avatar,
134134
);

0 commit comments

Comments
 (0)