@@ -317,11 +317,10 @@ steps:
317
317
318
318
runApp(
319
319
ChangeNotifierProvider<FlutterDevPlaylists>(
320
- create:
321
- (context) => FlutterDevPlaylists(
322
- flutterDevAccountId: flutterDevAccountId,
323
- youTubeApiKey: youTubeApiKey,
324
- ),
320
+ create: (context) => FlutterDevPlaylists(
321
+ flutterDevAccountId: flutterDevAccountId,
322
+ youTubeApiKey: youTubeApiKey,
323
+ ),
325
324
child: const PlaylistsApp(),
326
325
),
327
326
);
@@ -574,13 +573,12 @@ steps:
574
573
uri: Uri.parse(
575
574
'https://www.youtube.com/watch?v=${playlistItem.snippet!.resourceId!.videoId}',
576
575
),
577
- builder:
578
- (context, followLink) => IconButton(
579
- onPressed: followLink,
580
- color: Colors.red,
581
- icon: const Icon(Icons.play_circle_fill),
582
- iconSize: 45,
583
- ),
576
+ builder: (context, followLink) => IconButton(
577
+ onPressed: followLink,
578
+ color: Colors.red,
579
+ icon: const Icon(Icons.play_circle_fill),
580
+ iconSize: 45,
581
+ ),
584
582
),
585
583
],
586
584
);
@@ -1211,10 +1209,9 @@ steps:
1211
1209
class AdaptiveImage extends StatelessWidget {
1212
1210
AdaptiveImage.network(String url, {super.key}) {
1213
1211
if (kIsWeb) {
1214
- _url =
1215
- Uri.parse(
1216
- url,
1217
- ).replace(host: 'localhost', port: 8080, scheme: 'http').toString();
1212
+ _url = Uri.parse(
1213
+ url,
1214
+ ).replace(host: 'localhost', port: 8080, scheme: 'http').toString();
1218
1215
} else {
1219
1216
_url = url;
1220
1217
}
@@ -1430,8 +1427,8 @@ steps:
1430
1427
body: Center(
1431
1428
child: Link(
1432
1429
uri: authUrl,
1433
- builder:
1434
- (context, followLink) => widget.button(onPressed: followLink),
1430
+ builder: (context, followLink) =>
1431
+ widget.button(onPressed: followLink),
1435
1432
),
1436
1433
),
1437
1434
);
@@ -1526,7 +1523,7 @@ steps:
1526
1523
GoRoute(
1527
1524
path: 'playlist/:id',
1528
1525
builder: (context, state) {
1529
- @@ -44,18 +64,9 @@ final _router = GoRouter(
1526
+ @@ -44,17 +64,9 @@ final _router = GoRouter(
1530
1527
);
1531
1528
1532
1529
void main() {
@@ -1537,17 +1534,16 @@ steps:
1537
1534
-
1538
1535
runApp(
1539
1536
- ChangeNotifierProvider<FlutterDevPlaylists>(
1540
- - create:
1541
- - (context) => FlutterDevPlaylists(
1542
- - flutterDevAccountId: flutterDevAccountId,
1543
- - youTubeApiKey: youTubeApiKey,
1544
- - ),
1537
+ - create: (context) => FlutterDevPlaylists(
1538
+ - flutterDevAccountId: flutterDevAccountId,
1539
+ - youTubeApiKey: youTubeApiKey,
1540
+ - ),
1545
1541
+ ChangeNotifierProvider<AuthedUserPlaylists>(
1546
1542
+ create: (context) => AuthedUserPlaylists(),
1547
1543
child: const PlaylistsApp(),
1548
1544
),
1549
1545
);
1550
- @@ -67 ,7 +78,7 @@ class PlaylistsApp extends StatelessWidget {
1546
+ @@ -66 ,7 +78,7 @@ class PlaylistsApp extends StatelessWidget {
1551
1547
@override
1552
1548
Widget build(BuildContext context) {
1553
1549
return MaterialApp.router(
0 commit comments