Skip to content

Commit 727f61f

Browse files
committed
dart format
1 parent cf0b2fb commit 727f61f

File tree

465 files changed

+6694
-7485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

465 files changed

+6694
-7485
lines changed

.github/workflows/flutter-ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
# Flutter channel `master` requires dart format across the board.
27-
# flutter_version: [stable, beta, master]
28-
flutter_version: [stable, beta]
26+
flutter_version: [stable, beta, master]
2927
os: [ubuntu-latest, macos-latest, windows-latest]
3028
steps:
3129
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

adaptive_app/step_04/lib/main.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@ void main() {
4848

4949
runApp(
5050
ChangeNotifierProvider<FlutterDevPlaylists>(
51-
create:
52-
(context) => FlutterDevPlaylists(
53-
flutterDevAccountId: flutterDevAccountId,
54-
youTubeApiKey: youTubeApiKey,
55-
),
51+
create: (context) => FlutterDevPlaylists(
52+
flutterDevAccountId: flutterDevAccountId,
53+
youTubeApiKey: youTubeApiKey,
54+
),
5655
child: const PlaylistsApp(),
5756
),
5857
);

adaptive_app/step_04/lib/src/playlist_details.dart

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,12 @@ class _PlaylistDetailsListView extends StatelessWidget {
128128
uri: Uri.parse(
129129
'https://www.youtube.com/watch?v=${playlistItem.snippet!.resourceId!.videoId}',
130130
),
131-
builder:
132-
(context, followLink) => IconButton(
133-
onPressed: followLink,
134-
color: Colors.red,
135-
icon: const Icon(Icons.play_circle_fill),
136-
iconSize: 45,
137-
),
131+
builder: (context, followLink) => IconButton(
132+
onPressed: followLink,
133+
color: Colors.red,
134+
icon: const Icon(Icons.play_circle_fill),
135+
iconSize: 45,
136+
),
138137
),
139138
],
140139
);

adaptive_app/step_05/lib/main.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ void main() {
5151

5252
runApp(
5353
ChangeNotifierProvider<FlutterDevPlaylists>(
54-
create:
55-
(context) => FlutterDevPlaylists(
56-
flutterDevAccountId: flutterDevAccountId,
57-
youTubeApiKey: youTubeApiKey,
58-
),
54+
create: (context) => FlutterDevPlaylists(
55+
flutterDevAccountId: flutterDevAccountId,
56+
youTubeApiKey: youTubeApiKey,
57+
),
5958
child: const PlaylistsApp(),
6059
),
6160
);

adaptive_app/step_05/lib/src/playlist_details.dart

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,12 @@ class _PlaylistDetailsListViewState extends State<_PlaylistDetailsListView> {
146146
uri: Uri.parse(
147147
'https://www.youtube.com/watch?v=${playlistItem.snippet!.resourceId!.videoId}',
148148
),
149-
builder:
150-
(context, followLink) => IconButton(
151-
onPressed: followLink,
152-
color: Colors.red,
153-
icon: const Icon(Icons.play_circle_fill),
154-
iconSize: 45,
155-
),
149+
builder: (context, followLink) => IconButton(
150+
onPressed: followLink,
151+
color: Colors.red,
152+
icon: const Icon(Icons.play_circle_fill),
153+
iconSize: 45,
154+
),
156155
),
157156
],
158157
);

adaptive_app/step_06/lib/main.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ void main() {
5151

5252
runApp(
5353
ChangeNotifierProvider<FlutterDevPlaylists>(
54-
create:
55-
(context) => FlutterDevPlaylists(
56-
flutterDevAccountId: flutterDevAccountId,
57-
youTubeApiKey: youTubeApiKey,
58-
),
54+
create: (context) => FlutterDevPlaylists(
55+
flutterDevAccountId: flutterDevAccountId,
56+
youTubeApiKey: youTubeApiKey,
57+
),
5958
child: const PlaylistsApp(),
6059
),
6160
);

adaptive_app/step_06/lib/src/adaptive_image.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import 'package:flutter/material.dart';
88
class AdaptiveImage extends StatelessWidget {
99
AdaptiveImage.network(String url, {super.key}) {
1010
if (kIsWeb) {
11-
_url =
12-
Uri.parse(
13-
url,
14-
).replace(host: 'localhost', port: 8080, scheme: 'http').toString();
11+
_url = Uri.parse(
12+
url,
13+
).replace(host: 'localhost', port: 8080, scheme: 'http').toString();
1514
} else {
1615
_url = url;
1716
}

adaptive_app/step_06/lib/src/playlist_details.dart

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,12 @@ class _PlaylistDetailsListViewState extends State<_PlaylistDetailsListView> {
150150
uri: Uri.parse(
151151
'https://www.youtube.com/watch?v=${playlistItem.snippet!.resourceId!.videoId}',
152152
),
153-
builder:
154-
(context, followLink) => IconButton(
155-
onPressed: followLink,
156-
color: Colors.red,
157-
icon: const Icon(Icons.play_circle_fill),
158-
iconSize: 45,
159-
),
153+
builder: (context, followLink) => IconButton(
154+
onPressed: followLink,
155+
color: Colors.red,
156+
icon: const Icon(Icons.play_circle_fill),
157+
iconSize: 45,
158+
),
160159
),
161160
],
162161
);

adaptive_app/step_07/lib/src/adaptive_image.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import 'package:flutter/material.dart';
88
class AdaptiveImage extends StatelessWidget {
99
AdaptiveImage.network(String url, {super.key}) {
1010
if (kIsWeb) {
11-
_url =
12-
Uri.parse(
13-
url,
14-
).replace(host: 'localhost', port: 8080, scheme: 'http').toString();
11+
_url = Uri.parse(
12+
url,
13+
).replace(host: 'localhost', port: 8080, scheme: 'http').toString();
1514
} else {
1615
_url = url;
1716
}

adaptive_app/step_07/lib/src/adaptive_login.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ class _GoogleApisAuthLoginState extends State<_GoogleApisAuthLogin> {
133133
body: Center(
134134
child: Link(
135135
uri: authUrl,
136-
builder:
137-
(context, followLink) => widget.button(onPressed: followLink),
136+
builder: (context, followLink) =>
137+
widget.button(onPressed: followLink),
138138
),
139139
),
140140
);

0 commit comments

Comments
 (0)