fix(flutter): clear analyze --fatal-infos issues
Three info-level lints from CI:
- playlist_card.dart doc comment: "/playlists/<id>" → "/playlists/{id}"
in backticks, since `<id>` was flagged as unintended HTML.
- compact_track_card_test.dart: home: Scaffold(...) is now const, which
propagates const to CompactTrackCard and makes the inner [_track]
implicitly const.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@ import '../../theme/theme_extension.dart';
|
|||||||
|
|
||||||
/// Mirrors the web PlaylistCard. ~176dp wide, square cover (~144dp),
|
/// Mirrors the web PlaylistCard. ~176dp wide, square cover (~144dp),
|
||||||
/// name + optional system-variant badge below. Tap pushes
|
/// name + optional system-variant badge below. Tap pushes
|
||||||
/// /playlists/<id>.
|
/// `/playlists/{id}`.
|
||||||
class PlaylistCard extends StatelessWidget {
|
class PlaylistCard extends StatelessWidget {
|
||||||
const PlaylistCard({super.key, required this.playlist});
|
const PlaylistCard({super.key, required this.playlist});
|
||||||
|
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ void main() {
|
|||||||
await tester.pumpWidget(ProviderScope(
|
await tester.pumpWidget(ProviderScope(
|
||||||
child: MaterialApp(
|
child: MaterialApp(
|
||||||
theme: buildThemeData(),
|
theme: buildThemeData(),
|
||||||
home: Scaffold(
|
home: const Scaffold(
|
||||||
body: CompactTrackCard(
|
body: CompactTrackCard(
|
||||||
track: _track,
|
track: _track,
|
||||||
sectionTracks: const [_track],
|
sectionTracks: [_track],
|
||||||
index: 0,
|
index: 0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user