Skip to content

Commit cfcc01b

Browse files
committed
Update rebuild script for adaptive_app
1 parent 57950ad commit cfcc01b

File tree

1 file changed

+21
-25
lines changed

1 file changed

+21
-25
lines changed

adaptive_app/codelab_rebuild.yaml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,10 @@ steps:
317317
318318
runApp(
319319
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+
),
325324
child: const PlaylistsApp(),
326325
),
327326
);
@@ -574,13 +573,12 @@ steps:
574573
uri: Uri.parse(
575574
'https://www.youtube.com/watch?v=${playlistItem.snippet!.resourceId!.videoId}',
576575
),
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+
),
584582
),
585583
],
586584
);
@@ -1211,10 +1209,9 @@ steps:
12111209
class AdaptiveImage extends StatelessWidget {
12121210
AdaptiveImage.network(String url, {super.key}) {
12131211
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();
12181215
} else {
12191216
_url = url;
12201217
}
@@ -1430,8 +1427,8 @@ steps:
14301427
body: Center(
14311428
child: Link(
14321429
uri: authUrl,
1433-
builder:
1434-
(context, followLink) => widget.button(onPressed: followLink),
1430+
builder: (context, followLink) =>
1431+
widget.button(onPressed: followLink),
14351432
),
14361433
),
14371434
);
@@ -1526,7 +1523,7 @@ steps:
15261523
GoRoute(
15271524
path: 'playlist/:id',
15281525
builder: (context, state) {
1529-
@@ -44,18 +64,9 @@ final _router = GoRouter(
1526+
@@ -44,17 +64,9 @@ final _router = GoRouter(
15301527
);
15311528
15321529
void main() {
@@ -1537,17 +1534,16 @@ steps:
15371534
-
15381535
runApp(
15391536
- 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+
- ),
15451541
+ ChangeNotifierProvider<AuthedUserPlaylists>(
15461542
+ create: (context) => AuthedUserPlaylists(),
15471543
child: const PlaylistsApp(),
15481544
),
15491545
);
1550-
@@ -67,7 +78,7 @@ class PlaylistsApp extends StatelessWidget {
1546+
@@ -66,7 +78,7 @@ class PlaylistsApp extends StatelessWidget {
15511547
@override
15521548
Widget build(BuildContext context) {
15531549
return MaterialApp.router(

0 commit comments

Comments
 (0)