[dev, bots, examples] rename local functions with _s (#102703)
This commit is contained in:
@@ -16,7 +16,7 @@ void main() {
|
||||
body: (WidgetController controller) async {
|
||||
final Finder nestedScroll = find.byKey(const ValueKey<String>('tabbar_view'));
|
||||
expect(nestedScroll, findsOneWidget);
|
||||
Future<void> _scrollOnce(double offset) async {
|
||||
Future<void> scrollOnce(double offset) async {
|
||||
await controller.timedDrag(
|
||||
nestedScroll,
|
||||
Offset(-offset, 0.0),
|
||||
@@ -25,10 +25,10 @@ void main() {
|
||||
await Future<void>.delayed(const Duration(milliseconds: 500));
|
||||
}
|
||||
for (int i = 0; i < 3; i += 1) {
|
||||
await _scrollOnce(-300.0);
|
||||
await _scrollOnce(-300.0);
|
||||
await _scrollOnce(300.0);
|
||||
await _scrollOnce(300.0);
|
||||
await scrollOnce(-300.0);
|
||||
await scrollOnce(-300.0);
|
||||
await scrollOnce(300.0);
|
||||
await scrollOnce(300.0);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@@ -14,7 +14,7 @@ void main() {
|
||||
pageDelay: const Duration(seconds: 1),
|
||||
driverOps: (FlutterDriver driver) async {
|
||||
final SerializableFinder tabBarView = find.byValueKey('tabbar_view_complexity');
|
||||
Future<void> _scrollOnce(double offset) async {
|
||||
Future<void> scrollOnce(double offset) async {
|
||||
// Technically it's not scrolling but moving
|
||||
await driver.scroll(tabBarView, offset, 0.0, const Duration(milliseconds: 300));
|
||||
await Future<void>.delayed(const Duration(milliseconds: 500));
|
||||
@@ -22,8 +22,8 @@ void main() {
|
||||
// When we eventually add more test panes we will want to tweak these
|
||||
// to go through all the panes
|
||||
for (int i = 0; i < 6; i += 1) {
|
||||
await _scrollOnce(-300.0);
|
||||
await _scrollOnce(300.0);
|
||||
await scrollOnce(-300.0);
|
||||
await scrollOnce(300.0);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@@ -14,16 +14,16 @@ void main() {
|
||||
pageDelay: const Duration(seconds: 1),
|
||||
driverOps: (FlutterDriver driver) async {
|
||||
final SerializableFinder tabBarView = find.byValueKey('tabbar_view');
|
||||
Future<void> _scrollOnce(double offset) async {
|
||||
Future<void> scrollOnce(double offset) async {
|
||||
// Technically it's not scrolling but moving
|
||||
await driver.scroll(tabBarView, offset, 0.0, const Duration(milliseconds: 300));
|
||||
await Future<void>.delayed(const Duration(milliseconds: 500));
|
||||
}
|
||||
for (int i = 0; i < 3; i += 1) {
|
||||
await _scrollOnce(-300.0);
|
||||
await _scrollOnce(-300.0);
|
||||
await _scrollOnce(300.0);
|
||||
await _scrollOnce(300.0);
|
||||
await scrollOnce(-300.0);
|
||||
await scrollOnce(-300.0);
|
||||
await scrollOnce(300.0);
|
||||
await scrollOnce(300.0);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@@ -15,7 +15,7 @@ void main() {
|
||||
assert(false, "Don't run benchmarks in checked mode! Use 'flutter run --release'.");
|
||||
print('MatrixUtils.transformRect and .transformPoint benchmark...');
|
||||
|
||||
Matrix4 _makePerspective(double radius, double angle, double perspective) {
|
||||
Matrix4 makePerspective(double radius, double angle, double perspective) {
|
||||
return MatrixUtils.createCylindricalProjectionTransform(
|
||||
radius: radius,
|
||||
angle: angle,
|
||||
@@ -29,9 +29,9 @@ void main() {
|
||||
Matrix4.identity()..scale(1.2, 1.3, 1.0)..translate(12.0, 13.0, 10.0),
|
||||
];
|
||||
final List<Matrix4> perspectiveTransforms = <Matrix4>[
|
||||
_makePerspective(10.0, math.pi / 8.0, 0.3),
|
||||
_makePerspective( 8.0, math.pi / 8.0, 0.2),
|
||||
_makePerspective( 1.0, math.pi / 4.0, 0.1)..rotateX(0.1),
|
||||
makePerspective(10.0, math.pi / 8.0, 0.3),
|
||||
makePerspective( 8.0, math.pi / 8.0, 0.2),
|
||||
makePerspective( 1.0, math.pi / 4.0, 0.1)..rotateX(0.1),
|
||||
];
|
||||
final List<Rect> rectangles = <Rect>[
|
||||
const Rect.fromLTRB(1.1, 1.2, 1.5, 1.8),
|
||||
|
||||
Reference in New Issue
Block a user