Skip to content

Commit c02b6a8

Browse files
authored
some whitespace cleanup (flutter#14443)
1 parent 688a571 commit c02b6a8

158 files changed

Lines changed: 340 additions & 340 deletions

File tree

Some content is hidden

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

dev/benchmarks/complex_layout/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class TileScrollLayout extends StatelessWidget {
6464
itemCount: 200,
6565
itemBuilder: (BuildContext context, int index) {
6666
return new Padding(
67-
padding:const EdgeInsets.all(5.0),
67+
padding: const EdgeInsets.all(5.0),
6868
child: new Material(
6969
elevation: (index % 5 + 1).toDouble(),
7070
color: Colors.white,

dev/bots/prepare_package.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ProcessFailedException extends Error {
3232

3333
/// Creates a pre-populated Flutter archive from a git repo.
3434
class ArchiveCreator {
35-
/// [_tempDir] is the directory to use for creating the archive. The script
35+
/// [_tempDir] is the directory to use for creating the archive. The script
3636
/// will place several GiB of data there, so it should have available space.
3737
///
3838
/// The processManager argument is used to inject a mock of [ProcessManager] for
@@ -151,7 +151,7 @@ class ArchiveCreator {
151151
///
152152
/// May only be run on Windows (since 7Zip is not available on other platforms).
153153
Future<String> _unzipArchive(File archive, {Directory currentDirectory}) {
154-
assert(Platform.isWindows); // 7Zip is only available on Windows.
154+
assert(Platform.isWindows); // 7Zip is only available on Windows.
155155
currentDirectory ??= new Directory(path.dirname(archive.absolute.path));
156156
final List<String> commandLine = <String>['7za', 'x', archive.absolute.path];
157157
return _runProcess(commandLine, workingDirectory: currentDirectory);
@@ -161,7 +161,7 @@ class ArchiveCreator {
161161
///
162162
/// May only be run on Windows (since 7Zip is not available on other platforms).
163163
Future<String> _createZipArchive(File output, Directory source) {
164-
assert(Platform.isWindows); // 7Zip is only available on Windows.
164+
assert(Platform.isWindows); // 7Zip is only available on Windows.
165165
final List<String> commandLine = <String>[
166166
'7za',
167167
'a',

dev/devicelab/lib/tasks/microbenchmarks.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Future<Map<String, double>> _readJsonResults(Process process) {
131131
if (line.contains(jsonEnd)) {
132132
jsonStarted = false;
133133
processWasKilledIntentionally = true;
134-
process.kill(ProcessSignal.SIGINT); // flutter run doesn't quit automatically
134+
process.kill(ProcessSignal.SIGINT); // flutter run doesn't quit automatically
135135
completer.complete(JSON.decode(jsonBuf.toString()));
136136
return;
137137
}

dev/manual_tests/lib/card_collection.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,12 @@ class CardCollectionState extends State<CardCollection> {
295295
}
296296

297297
// TODO(abarth): This icon is wrong in RTL.
298-
Widget leftArrowIcon = const Icon(Icons.arrow_back, size: 36.0);
298+
Widget leftArrowIcon = const Icon(Icons.arrow_back, size: 36.0);
299299
if (_dismissDirection == DismissDirection.startToEnd)
300300
leftArrowIcon = new Opacity(opacity: 0.1, child: leftArrowIcon);
301301

302302
// TODO(abarth): This icon is wrong in RTL.
303-
Widget rightArrowIcon = const Icon(Icons.arrow_forward, size: 36.0);
303+
Widget rightArrowIcon = const Icon(Icons.arrow_forward, size: 36.0);
304304
if (_dismissDirection == DismissDirection.endToStart)
305305
rightArrowIcon = new Opacity(opacity: 0.1, child: rightArrowIcon);
306306

dev/manual_tests/lib/material_arc.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ class _DragHandler extends Drag {
2727
final GestureDragEndCallback onEnd;
2828

2929
@override
30-
void update(DragUpdateDetails details) {
30+
void update(DragUpdateDetails details) {
3131
onUpdate(details);
3232
}
3333

3434
@override
35-
void cancel() {
35+
void cancel() {
3636
onCancel();
3737
}
3838

3939
@override
40-
void end(DragEndDetails details) {
40+
void end(DragEndDetails details) {
4141
onEnd(details);
4242
}
4343
}
@@ -152,7 +152,7 @@ class _PointDemoState extends State<_PointDemo> {
152152
return new _DragHandler(_handleDragUpdate, _handleDragCancel, _handleDragEnd);
153153
}
154154

155-
void _handleDragUpdate(DragUpdateDetails details) {
155+
void _handleDragUpdate(DragUpdateDetails details) {
156156
switch (_dragTarget) {
157157
case _DragTarget.start:
158158
setState(() {
@@ -167,12 +167,12 @@ class _PointDemoState extends State<_PointDemo> {
167167
}
168168
}
169169

170-
void _handleDragCancel() {
170+
void _handleDragCancel() {
171171
_dragTarget = null;
172172
widget.controller.value = 0.0;
173173
}
174174

175-
void _handleDragEnd(DragEndDetails details) {
175+
void _handleDragEnd(DragEndDetails details) {
176176
_dragTarget = null;
177177
}
178178

@@ -319,7 +319,7 @@ class _RectangleDemoState extends State<_RectangleDemo> {
319319
return new _DragHandler(_handleDragUpdate, _handleDragCancel, _handleDragEnd);
320320
}
321321

322-
void _handleDragUpdate(DragUpdateDetails details) {
322+
void _handleDragUpdate(DragUpdateDetails details) {
323323
switch (_dragTarget) {
324324
case _DragTarget.start:
325325
setState(() {
@@ -334,12 +334,12 @@ class _RectangleDemoState extends State<_RectangleDemo> {
334334
}
335335
}
336336

337-
void _handleDragCancel() {
337+
void _handleDragCancel() {
338338
_dragTarget = null;
339339
widget.controller.value = 0.0;
340340
}
341341

342-
void _handleDragEnd(DragEndDetails details) {
342+
void _handleDragEnd(DragEndDetails details) {
343343
_dragTarget = null;
344344
}
345345

dev/manual_tests/lib/raw_keyboard.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class _HardwareKeyDemoState extends State<RawKeyboardDemo> {
4343
}
4444

4545
@override
46-
Widget build(BuildContext context) {
46+
Widget build(BuildContext context) {
4747
final TextTheme textTheme = Theme.of(context).textTheme;
4848
return new RawKeyboardListener(
4949
focusNode: _focusNode,

dev/tools/gen_date_localizations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Future<Null> main(List<String> rawArgs) async {
7575
// Use of this source code is governed by a BSD-style license that can be
7676
// found in the LICENSE file.
7777
78-
// This file has been automatically generated. Please do not edit it manually.
78+
// This file has been automatically generated. Please do not edit it manually.
7979
// To regenerate run (omit -w to print to console instead of the file):
8080
// dart --enable-asserts dev/tools/gen_date_localizations.dart --overwrite
8181

dev/tools/test/fake_process_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class FakeProcessManager extends Mock implements ProcessManager {
2727
final StringReceivedCallback stdinResults;
2828

2929
/// The list of results that will be sent back, organized by the command line
30-
/// that will produce them. Each command line has a list of returned stdout
30+
/// that will produce them. Each command line has a list of returned stdout
3131
/// output that will be returned on each successive call.
3232
Map<String, List<ProcessResult>> fakeResults = <String, List<ProcessResult>>{};
3333

dev/tools/vitool/lib/vitool.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class FrameData {
267267
final List<SvgPath> paths;
268268

269269
@override
270-
bool operator ==(Object other){
270+
bool operator ==(Object other) {
271271
if (runtimeType != other.runtimeType)
272272
return false;
273273
final FrameData typedOther = other;
@@ -464,7 +464,7 @@ const String _transformCommandAtom = ' *([^(]+)\\(([^)]*)\\)';
464464
final RegExp _transformValidator = new RegExp('^($_transformCommandAtom)*\$');
465465
final RegExp _transformCommand = new RegExp(_transformCommandAtom);
466466

467-
Matrix3 _parseSvgTransform(String transform){
467+
Matrix3 _parseSvgTransform(String transform) {
468468
if (!_transformValidator.hasMatch(transform))
469469
throw new Exception('illegal or unsupported transform: $transform');
470470
final Iterable<Match> matches =_transformCommand.allMatches(transform).toList().reversed;

examples/catalog/bin/sample_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class SampleError extends Error {
1818

1919
// Sample apps are .dart files in the lib directory which contain a block
2020
// comment that begins with a '/* Sample Catalog' line, and ends with a line
21-
// that just contains '*/'. The following keywords may appear at the
21+
// that just contains '*/'. The following keywords may appear at the
2222
// beginning of lines within the comment. A keyword's value is all of
2323
// the following text up to the next keyword or the end of the comment,
2424
// sans leading and trailing whitespace.

0 commit comments

Comments
 (0)