This reverts commit af9f424d5d.
Reverts flutter/flutter#39439
Reason: this passed the local device lab test on my Macbook but it failed in the actual device lab. Will investigate, fix, and reland.
TBR: @dnfield @goderbauer @tvolkert @Hixie
This commit is contained in:
@@ -5,4 +5,3 @@
|
||||
const String kCullOpacityRouteName = '/cull_opacity';
|
||||
const String kCubicBezierRouteName = '/cubic_bezier';
|
||||
const String kBackdropFilterRouteName = '/backdrop_filter';
|
||||
const String kSimpleAnimationRouteName = '/simple_animation';
|
||||
|
||||
@@ -8,7 +8,6 @@ import 'common.dart';
|
||||
import 'src/backdrop_filter.dart';
|
||||
import 'src/cubic_bezier.dart';
|
||||
import 'src/cull_opacity.dart';
|
||||
import 'src/simple_animation.dart';
|
||||
|
||||
const String kMacrobenchmarks ='Macrobenchmarks';
|
||||
|
||||
@@ -25,7 +24,6 @@ class MacrobenchmarksApp extends StatelessWidget {
|
||||
kCullOpacityRouteName: (BuildContext context) => CullOpacityPage(),
|
||||
kCubicBezierRouteName: (BuildContext context) => CubicBezierPage(),
|
||||
kBackdropFilterRouteName: (BuildContext context) => BackdropFilterPage(),
|
||||
kSimpleAnimationRouteName: (BuildContext conttext) => SimpleAnimationPage(),
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -41,31 +39,24 @@ class HomePage extends StatelessWidget {
|
||||
RaisedButton(
|
||||
key: const Key(kCullOpacityRouteName),
|
||||
child: const Text('Cull opacity'),
|
||||
onPressed: () {
|
||||
onPressed: (){
|
||||
Navigator.pushNamed(context, kCullOpacityRouteName);
|
||||
},
|
||||
),
|
||||
RaisedButton(
|
||||
key: const Key(kCubicBezierRouteName),
|
||||
child: const Text('Cubic Bezier'),
|
||||
onPressed: () {
|
||||
onPressed: (){
|
||||
Navigator.pushNamed(context, kCubicBezierRouteName);
|
||||
},
|
||||
),
|
||||
RaisedButton(
|
||||
key: const Key(kBackdropFilterRouteName),
|
||||
child: const Text('Backdrop Filter'),
|
||||
onPressed: () {
|
||||
onPressed: (){
|
||||
Navigator.pushNamed(context, kBackdropFilterRouteName);
|
||||
},
|
||||
),
|
||||
RaisedButton(
|
||||
key: const Key(kSimpleAnimationRouteName),
|
||||
child: const Text('Simple Animation'),
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(context, kSimpleAnimationRouteName);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
// Copyright 2019 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
// Copyright 2019 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SimpleAnimationPage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const Center(child: LinearProgressIndicator());
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
// Copyright 2019 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter_driver/driver_extension.dart';
|
||||
import 'package:macrobenchmarks/main.dart' as app;
|
||||
|
||||
void main() {
|
||||
enableFlutterDriverExtension();
|
||||
app.main();
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
// Copyright 2019 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:macrobenchmarks/common.dart';
|
||||
|
||||
import 'util.dart';
|
||||
|
||||
void main() {
|
||||
macroPerfTest(
|
||||
'simple_animation_perf',
|
||||
kSimpleAnimationRouteName,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user