Skip to content

Commit a675544

Browse files
committed
Apply dart_style PR #1700.
1 parent 7a735b9 commit a675544

File tree

248 files changed

+586
-1798
lines changed

Some content is hidden

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

248 files changed

+586
-1798
lines changed

ably_flutter_rest.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ class Rest extends PlatformObject {
2323

2424
/// Constructs a `Rest` object using an Ably API [key] or token string
2525
/// that's used to validate the cliet.
26-
factory Rest.fromKey(String key) => Rest(
27-
options: ClientOptions(key: key),
28-
);
26+
factory Rest.fromKey(String key) => Rest(options: ClientOptions(key: key));
2927

3028
/// @nodoc
3129
@override

absmartly_sdk_default_context_data_deserializer_test.dart

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ void main() {
3636
trafficSeedLo: 455443629,
3737
trafficSplit: [0.0, 1.0],
3838
fullOnVariant: 0,
39-
applications: [
40-
ExperimentApplication(name: 'website'),
41-
],
39+
applications: [ExperimentApplication(name: 'website')],
4240
variants: [
4341
ExperimentVariant(name: 'A', config: null),
4442
ExperimentVariant(
@@ -62,9 +60,7 @@ void main() {
6260
trafficSeedLo: 212903484,
6361
trafficSplit: [0.0, 1.0],
6462
fullOnVariant: 0,
65-
applications: [
66-
ExperimentApplication(name: "website"),
67-
],
63+
applications: [ExperimentApplication(name: "website")],
6864
variants: [
6965
ExperimentVariant(name: "A", config: null),
7066
ExperimentVariant(name: "B", config: "{\"button.color\":\"blue\"}"),
@@ -86,9 +82,7 @@ void main() {
8682
trafficSeedLo: 511357582,
8783
trafficSplit: [0.99, 0.01],
8884
fullOnVariant: 0,
89-
applications: [
90-
ExperimentApplication(name: "website"),
91-
],
85+
applications: [ExperimentApplication(name: "website")],
9286
variants: [
9387
ExperimentVariant(name: "A", config: null),
9488
ExperimentVariant(name: "B", config: "{\"card.width\":\"80%\"}"),
@@ -110,9 +104,7 @@ void main() {
110104
trafficSeedLo: 330937933,
111105
trafficSplit: [0.0, 1.0],
112106
fullOnVariant: 2,
113-
applications: [
114-
ExperimentApplication(name: "website"),
115-
],
107+
applications: [ExperimentApplication(name: "website")],
116108
variants: [
117109
ExperimentVariant(name: "A", config: null),
118110
ExperimentVariant(

abstract_bloc_abstract_form_error_container.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ class AbstractFormErrorContainer extends StatelessWidget {
1616
SizedBox(height: 15),
1717
TextButton(
1818
onPressed: () => onInit?.call(),
19-
child: Text(
20-
'Reload',
21-
style: TextStyle(color: Colors.black),
22-
),
19+
child: Text('Reload', style: TextStyle(color: Colors.black)),
2320
),
2421
SizedBox(height: 15),
2522
],

abstract_bloc_abstract_form_no_data_container.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ class AbstractFormNoDataContainer extends StatelessWidget {
1616
SizedBox(height: 15),
1717
TextButton(
1818
onPressed: () => onInit?.call(),
19-
child: Text(
20-
'Reload',
21-
style: TextStyle(color: Colors.black),
22-
),
19+
child: Text('Reload', style: TextStyle(color: Colors.black)),
2320
),
2421
SizedBox(height: 15),
2522
],

adaptive_sidebar_main.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ class HomeView extends StatefulWidget {
7070
class _HomeViewState extends State<HomeView> {
7171
@override
7272
Widget build(BuildContext context) {
73-
return const Scaffold(
74-
body: Center(child: Text('Home Tab')),
75-
);
73+
return const Scaffold(body: Center(child: Text('Home Tab')));
7674
}
7775
}
7876

@@ -85,8 +83,6 @@ class SettingsView extends StatefulWidget {
8583
class _SettingsViewState extends State<SettingsView> {
8684
@override
8785
Widget build(BuildContext context) {
88-
return const Scaffold(
89-
body: Center(child: Text('Settings Tab')),
90-
);
86+
return const Scaffold(body: Center(child: Text('Settings Tab')));
9187
}
9288
}

adrop_ads_flutter_native_example.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ class _NativeExampleState extends State<NativeExample> {
5959

6060
return Container(
6161
margin: const EdgeInsets.symmetric(vertical: 16),
62-
decoration: BoxDecoration(
63-
border: Border.all(color: Colors.black),
64-
),
62+
decoration: BoxDecoration(border: Border.all(color: Colors.black)),
6563
width: MediaQuery.of(context).size.width,
6664
child: AdropNativeAdView(
6765
ad: nativeAd,

alga_configuikit_second_page.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ class _SecondPageState extends State<SecondPage> {
8383
@override
8484
Widget build(BuildContext context) {
8585
if (_isLoading) {
86-
return const Scaffold(
87-
body: Center(child: CircularProgressIndicator()),
88-
);
86+
return const Scaffold(body: Center(child: CircularProgressIndicator()));
8987
}
9088
return Scaffold(
9189
appBar: AppBar(

alh_pdf_view_alh_pdf_view_widget_test.dart

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,8 @@ void main() {
6868
// given
6969

7070
// when
71-
Future<void> pumpWidget() => tester.pumpWidget(
72-
MaterialApp(
73-
home: Scaffold(body: AlhPdfView()),
74-
),
75-
);
71+
Future<void> pumpWidget() =>
72+
tester.pumpWidget(MaterialApp(home: Scaffold(body: AlhPdfView())));
7673

7774
// then
7875
expect(pumpWidget, throwsAssertionError);
@@ -104,9 +101,7 @@ void main() {
104101
// when
105102
Future<void> pumpWidget() => tester.pumpWidget(
106103
MaterialApp(
107-
home: Scaffold(
108-
body: AlhPdfView(bytes: Uint8List(10), minZoom: -1.0),
109-
),
104+
home: Scaffold(body: AlhPdfView(bytes: Uint8List(10), minZoom: -1.0)),
110105
),
111106
);
112107

@@ -122,9 +117,7 @@ void main() {
122117
// when
123118
Future<void> pumpWidget() => tester.pumpWidget(
124119
MaterialApp(
125-
home: Scaffold(
126-
body: AlhPdfView(bytes: Uint8List(10), maxZoom: -1.0),
127-
),
120+
home: Scaffold(body: AlhPdfView(bytes: Uint8List(10), maxZoom: -1.0)),
128121
),
129122
);
130123

@@ -146,9 +139,7 @@ void main() {
146139
// when
147140
await tester.pumpWidget(
148141
const MaterialApp(
149-
home: Scaffold(
150-
body: AlhPdfView(filePath: givenFilePath),
151-
),
142+
home: Scaffold(body: AlhPdfView(filePath: givenFilePath)),
152143
),
153144
);
154145
await tester.pumpAndSettle();
@@ -205,9 +196,7 @@ void main() {
205196
// when
206197
await tester.pumpWidget(
207198
const MaterialApp(
208-
home: Scaffold(
209-
body: AlhPdfView(filePath: givenFilePath),
210-
),
199+
home: Scaffold(body: AlhPdfView(filePath: givenFilePath)),
211200
),
212201
);
213202
await tester.pumpAndSettle();

an_console_console_widget.dart

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,7 @@ class _ConsoleRoutePage<T> extends _ConsoleRoute<T> {
316316

317317
@override
318318
Widget build() {
319-
return RepaintBoundary(
320-
child: _ConsoleRoutePageWidget(route: this),
321-
);
319+
return RepaintBoundary(child: _ConsoleRoutePageWidget(route: this));
322320
}
323321
}
324322

@@ -333,9 +331,7 @@ class _ConsoleRouteDialog<T> extends _ConsoleRoute<T> {
333331

334332
@override
335333
Widget build() {
336-
return RepaintBoundary(
337-
child: _ConsoleRouteDialogWidget(route: this),
338-
);
334+
return RepaintBoundary(child: _ConsoleRouteDialogWidget(route: this));
339335
}
340336
}
341337

@@ -350,9 +346,7 @@ class _ConsoleRouteBottomSheet<T> extends _ConsoleRoute<T> {
350346

351347
@override
352348
Widget build() {
353-
return RepaintBoundary(
354-
child: _ConsoleRouteBottomSheetWidget(route: this),
355-
);
349+
return RepaintBoundary(child: _ConsoleRouteBottomSheetWidget(route: this));
356350
}
357351
}
358352

anlifecycle_example.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ class _PageViewExampleState extends State<PageViewExample>
167167
appBar: AppBar(title: const Text('PageViewExample')),
168168
body: LifecyclePageView(
169169
controller: _pageController,
170-
children: [
171-
for (int i = 0; i < 9; i++) ItemView(index: i),
172-
],
170+
children: [for (int i = 0; i < 9; i++) ItemView(index: i)],
173171
// itemCount: 10,
174172
// itemBuilder: (context, index) => ItemView(index: index),
175173
),

0 commit comments

Comments
 (0)