Add Sliders to macrobenchmarks (#125296)

This adds a performance test for `Slider` and `RangeSlider` to run on Android.
This is to measure upcoming changes to these widgets and compare their performance. 

https://user-images.githubusercontent.com/48603081/233633349-0bcad3c3-04a9-42dd-acd0-46b76ce51178.mp4
This commit is contained in:
Taha Tesser
2023-04-25 02:25:28 +03:00
committed by GitHub
parent 9525934ed3
commit 457e98a1e7
6 changed files with 114 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// Copyright 2014 The Flutter 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(
'sliders_perf',
kSlidersRouteName,
pageDelay: const Duration(seconds: 1),
duration: const Duration(seconds: 10),
);
}