some whitespace cleanup (#14443)
This commit is contained in:
committed by
GitHub
parent
688a571c71
commit
c02b6a8bcf
@@ -64,7 +64,7 @@ class TileScrollLayout extends StatelessWidget {
|
||||
itemCount: 200,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
return new Padding(
|
||||
padding:const EdgeInsets.all(5.0),
|
||||
padding: const EdgeInsets.all(5.0),
|
||||
child: new Material(
|
||||
elevation: (index % 5 + 1).toDouble(),
|
||||
color: Colors.white,
|
||||
|
||||
@@ -32,7 +32,7 @@ class ProcessFailedException extends Error {
|
||||
|
||||
/// Creates a pre-populated Flutter archive from a git repo.
|
||||
class ArchiveCreator {
|
||||
/// [_tempDir] is the directory to use for creating the archive. The script
|
||||
/// [_tempDir] is the directory to use for creating the archive. The script
|
||||
/// will place several GiB of data there, so it should have available space.
|
||||
///
|
||||
/// The processManager argument is used to inject a mock of [ProcessManager] for
|
||||
@@ -151,7 +151,7 @@ class ArchiveCreator {
|
||||
///
|
||||
/// May only be run on Windows (since 7Zip is not available on other platforms).
|
||||
Future<String> _unzipArchive(File archive, {Directory currentDirectory}) {
|
||||
assert(Platform.isWindows); // 7Zip is only available on Windows.
|
||||
assert(Platform.isWindows); // 7Zip is only available on Windows.
|
||||
currentDirectory ??= new Directory(path.dirname(archive.absolute.path));
|
||||
final List<String> commandLine = <String>['7za', 'x', archive.absolute.path];
|
||||
return _runProcess(commandLine, workingDirectory: currentDirectory);
|
||||
@@ -161,7 +161,7 @@ class ArchiveCreator {
|
||||
///
|
||||
/// May only be run on Windows (since 7Zip is not available on other platforms).
|
||||
Future<String> _createZipArchive(File output, Directory source) {
|
||||
assert(Platform.isWindows); // 7Zip is only available on Windows.
|
||||
assert(Platform.isWindows); // 7Zip is only available on Windows.
|
||||
final List<String> commandLine = <String>[
|
||||
'7za',
|
||||
'a',
|
||||
|
||||
@@ -131,7 +131,7 @@ Future<Map<String, double>> _readJsonResults(Process process) {
|
||||
if (line.contains(jsonEnd)) {
|
||||
jsonStarted = false;
|
||||
processWasKilledIntentionally = true;
|
||||
process.kill(ProcessSignal.SIGINT); // flutter run doesn't quit automatically
|
||||
process.kill(ProcessSignal.SIGINT); // flutter run doesn't quit automatically
|
||||
completer.complete(JSON.decode(jsonBuf.toString()));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -295,12 +295,12 @@ class CardCollectionState extends State<CardCollection> {
|
||||
}
|
||||
|
||||
// TODO(abarth): This icon is wrong in RTL.
|
||||
Widget leftArrowIcon = const Icon(Icons.arrow_back, size: 36.0);
|
||||
Widget leftArrowIcon = const Icon(Icons.arrow_back, size: 36.0);
|
||||
if (_dismissDirection == DismissDirection.startToEnd)
|
||||
leftArrowIcon = new Opacity(opacity: 0.1, child: leftArrowIcon);
|
||||
|
||||
// TODO(abarth): This icon is wrong in RTL.
|
||||
Widget rightArrowIcon = const Icon(Icons.arrow_forward, size: 36.0);
|
||||
Widget rightArrowIcon = const Icon(Icons.arrow_forward, size: 36.0);
|
||||
if (_dismissDirection == DismissDirection.endToStart)
|
||||
rightArrowIcon = new Opacity(opacity: 0.1, child: rightArrowIcon);
|
||||
|
||||
|
||||
@@ -27,17 +27,17 @@ class _DragHandler extends Drag {
|
||||
final GestureDragEndCallback onEnd;
|
||||
|
||||
@override
|
||||
void update(DragUpdateDetails details) {
|
||||
void update(DragUpdateDetails details) {
|
||||
onUpdate(details);
|
||||
}
|
||||
|
||||
@override
|
||||
void cancel() {
|
||||
void cancel() {
|
||||
onCancel();
|
||||
}
|
||||
|
||||
@override
|
||||
void end(DragEndDetails details) {
|
||||
void end(DragEndDetails details) {
|
||||
onEnd(details);
|
||||
}
|
||||
}
|
||||
@@ -152,7 +152,7 @@ class _PointDemoState extends State<_PointDemo> {
|
||||
return new _DragHandler(_handleDragUpdate, _handleDragCancel, _handleDragEnd);
|
||||
}
|
||||
|
||||
void _handleDragUpdate(DragUpdateDetails details) {
|
||||
void _handleDragUpdate(DragUpdateDetails details) {
|
||||
switch (_dragTarget) {
|
||||
case _DragTarget.start:
|
||||
setState(() {
|
||||
@@ -167,12 +167,12 @@ class _PointDemoState extends State<_PointDemo> {
|
||||
}
|
||||
}
|
||||
|
||||
void _handleDragCancel() {
|
||||
void _handleDragCancel() {
|
||||
_dragTarget = null;
|
||||
widget.controller.value = 0.0;
|
||||
}
|
||||
|
||||
void _handleDragEnd(DragEndDetails details) {
|
||||
void _handleDragEnd(DragEndDetails details) {
|
||||
_dragTarget = null;
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ class _RectangleDemoState extends State<_RectangleDemo> {
|
||||
return new _DragHandler(_handleDragUpdate, _handleDragCancel, _handleDragEnd);
|
||||
}
|
||||
|
||||
void _handleDragUpdate(DragUpdateDetails details) {
|
||||
void _handleDragUpdate(DragUpdateDetails details) {
|
||||
switch (_dragTarget) {
|
||||
case _DragTarget.start:
|
||||
setState(() {
|
||||
@@ -334,12 +334,12 @@ class _RectangleDemoState extends State<_RectangleDemo> {
|
||||
}
|
||||
}
|
||||
|
||||
void _handleDragCancel() {
|
||||
void _handleDragCancel() {
|
||||
_dragTarget = null;
|
||||
widget.controller.value = 0.0;
|
||||
}
|
||||
|
||||
void _handleDragEnd(DragEndDetails details) {
|
||||
void _handleDragEnd(DragEndDetails details) {
|
||||
_dragTarget = null;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class _HardwareKeyDemoState extends State<RawKeyboardDemo> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget build(BuildContext context) {
|
||||
final TextTheme textTheme = Theme.of(context).textTheme;
|
||||
return new RawKeyboardListener(
|
||||
focusNode: _focusNode,
|
||||
|
||||
@@ -75,7 +75,7 @@ Future<Null> main(List<String> rawArgs) async {
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This file has been automatically generated. Please do not edit it manually.
|
||||
// This file has been automatically generated. Please do not edit it manually.
|
||||
// To regenerate run (omit -w to print to console instead of the file):
|
||||
// dart --enable-asserts dev/tools/gen_date_localizations.dart --overwrite
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ class FakeProcessManager extends Mock implements ProcessManager {
|
||||
final StringReceivedCallback stdinResults;
|
||||
|
||||
/// The list of results that will be sent back, organized by the command line
|
||||
/// that will produce them. Each command line has a list of returned stdout
|
||||
/// that will produce them. Each command line has a list of returned stdout
|
||||
/// output that will be returned on each successive call.
|
||||
Map<String, List<ProcessResult>> fakeResults = <String, List<ProcessResult>>{};
|
||||
|
||||
|
||||
@@ -267,7 +267,7 @@ class FrameData {
|
||||
final List<SvgPath> paths;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other){
|
||||
bool operator ==(Object other) {
|
||||
if (runtimeType != other.runtimeType)
|
||||
return false;
|
||||
final FrameData typedOther = other;
|
||||
@@ -464,7 +464,7 @@ const String _transformCommandAtom = ' *([^(]+)\\(([^)]*)\\)';
|
||||
final RegExp _transformValidator = new RegExp('^($_transformCommandAtom)*\$');
|
||||
final RegExp _transformCommand = new RegExp(_transformCommandAtom);
|
||||
|
||||
Matrix3 _parseSvgTransform(String transform){
|
||||
Matrix3 _parseSvgTransform(String transform) {
|
||||
if (!_transformValidator.hasMatch(transform))
|
||||
throw new Exception('illegal or unsupported transform: $transform');
|
||||
final Iterable<Match> matches =_transformCommand.allMatches(transform).toList().reversed;
|
||||
|
||||
Reference in New Issue
Block a user