some whitespace cleanup (#14443)
This commit is contained in:
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,
|
||||
|
@ -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;
|
||||
|
@ -30,10 +30,10 @@ const List<String> coolColorNames = const <String>[
|
||||
|
||||
class CupertinoNavigationDemo extends StatelessWidget {
|
||||
CupertinoNavigationDemo()
|
||||
: colorItems = new List<Color>.generate(50, (int index){
|
||||
: colorItems = new List<Color>.generate(50, (int index) {
|
||||
return coolColors[new math.Random().nextInt(coolColors.length)];
|
||||
}) ,
|
||||
colorNameItems = new List<String>.generate(50, (int index){
|
||||
colorNameItems = new List<String>.generate(50, (int index) {
|
||||
return coolColorNames[new math.Random().nextInt(coolColorNames.length)];
|
||||
});
|
||||
|
||||
|
@ -111,7 +111,7 @@ class ScrollableTabsDemoState extends State<ScrollableTabsDemo> with SingleTicke
|
||||
child: new Container(
|
||||
key: new ObjectKey(page.icon),
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
child:new Card(
|
||||
child: new Card(
|
||||
child: new Center(
|
||||
child: new Icon(
|
||||
page.icon,
|
||||
|
@ -109,7 +109,7 @@ class DartSyntaxHighlighter extends SyntaxHighlighter {
|
||||
return new TextSpan(style: _style.baseStyle, children: formattedText);
|
||||
} else {
|
||||
// Parsing failed, return with only basic formatting
|
||||
return new TextSpan(style:_style.baseStyle, text: src);
|
||||
return new TextSpan(style: _style.baseStyle, text: src);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -396,7 +396,7 @@ void main() {
|
||||
expect(controller.value, 1.0);
|
||||
});
|
||||
|
||||
test('resetting animation works at all phases', (){
|
||||
test('resetting animation works at all phases', () {
|
||||
final List<AnimationStatus> statusLog = <AnimationStatus>[];
|
||||
final AnimationController controller = new AnimationController(
|
||||
duration: const Duration(milliseconds: 100),
|
||||
|
@ -58,7 +58,7 @@ void main() {
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: new Container(
|
||||
width: 600.0,
|
||||
child:new ListView(
|
||||
child: new ListView(
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
children: <String>['A', 'B', 'C', 'D', 'E', 'F'].map((String item) {
|
||||
return new SizedBox(
|
||||
|
@ -505,7 +505,7 @@ void main() {
|
||||
persistentFooterButtons: const <Widget>[const Text(persistentFooterButtonLabel)],
|
||||
bottomNavigationBar: const Text(bottomNavigationBarLabel),
|
||||
floatingActionButton: const Text(floatingActionButtonLabel),
|
||||
drawer: const Drawer(child:const Text(drawerLabel)),
|
||||
drawer: const Drawer(child: const Text(drawerLabel)),
|
||||
)));
|
||||
|
||||
expect(semantics, includesNodeWith(label: bodyLabel));
|
||||
@ -719,8 +719,8 @@ void main() {
|
||||
final SemanticsTester semantics = new SemanticsTester(tester);
|
||||
await tester.pumpWidget(new MaterialApp(home: const Scaffold(
|
||||
body: const Text(bodyLabel),
|
||||
drawer: const Drawer(child:const Text(drawerLabel)),
|
||||
endDrawer: const Drawer(child:const Text(endDrawerLabel)),
|
||||
drawer: const Drawer(child: const Text(drawerLabel)),
|
||||
endDrawer: const Drawer(child: const Text(endDrawerLabel)),
|
||||
)));
|
||||
|
||||
expect(semantics, includesNodeWith(label: bodyLabel));
|
||||
|
@ -444,7 +444,7 @@ void main() {
|
||||
await tester.tap(find.text('ACTION'));
|
||||
expect(actionPressed, isTrue);
|
||||
// Closed reason is only set when the animation is complete.
|
||||
await tester.pump(const Duration(milliseconds:250));
|
||||
await tester.pump(const Duration(milliseconds: 250));
|
||||
expect(closedReason, isNull);
|
||||
// Wait for animation to complete.
|
||||
await tester.pumpAndSettle(const Duration(seconds: 1));
|
||||
|
@ -167,7 +167,7 @@ void main() {
|
||||
|
||||
await tester.pumpWidget(new Directionality(
|
||||
textDirection: TextDirection.ltr,
|
||||
child:new MediaQuery(
|
||||
child: new MediaQuery(
|
||||
data: const MediaQueryData(),
|
||||
child: new Scrollable(
|
||||
controller: scrollController,
|
||||
|
@ -114,7 +114,7 @@ class CachedArtifacts extends Artifacts {
|
||||
}
|
||||
|
||||
@override
|
||||
String getEngineType(TargetPlatform platform, [BuildMode mode]){
|
||||
String getEngineType(TargetPlatform platform, [BuildMode mode]) {
|
||||
return fs.path.basename(_getEngineArtifactsPath(platform, mode));
|
||||
}
|
||||
|
||||
|
@ -21,12 +21,12 @@ void main() {
|
||||
testUsingContext('recursively creates a directory if it does not exist', () async {
|
||||
ensureDirectoryExists('foo/bar/baz.flx');
|
||||
expect(fs.isDirectorySync('foo/bar'), true);
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs } );
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs });
|
||||
|
||||
testUsingContext('throws tool exit on failure to create', () async {
|
||||
fs.file('foo').createSync();
|
||||
expect(() => ensureDirectoryExists('foo/bar.flx'), throwsToolExit());
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs } );
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs });
|
||||
});
|
||||
|
||||
group('copyDirectorySync', () {
|
||||
|
@ -55,5 +55,5 @@ void main() {
|
||||
fs.directory(fs.path.join(root, 'dev', 'tools', 'aatool')).path,
|
||||
fs.directory(fs.path.join(root, 'dev', 'tools')).path,
|
||||
]);
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs } );
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user