Remove InkSparkle.constantTurbulenceSeedSplashFactory usage (#139481)

This PR removes the call to `InkSparkle.constantTurbulenceSeedSplashFactory` which was introduced in https://github.com/flutter/flutter/pull/137998.

This is now obsolete since https://github.com/flutter/flutter/pull/138757 was merged and InkSparkle randomness is no more active in tests.
This commit is contained in:
Bruno Leroux
2023-12-04 18:30:11 +01:00
committed by GitHub
parent df88e3a55e
commit bd505f4b8b

View File

@@ -2339,12 +2339,9 @@ void main() {
// Regression test for: https://github.com/flutter/flutter/issues/22226
Widget runTest() {
int currentIndex = 0;
const bool useInkSparkle = !kIsWeb;
return MaterialApp(
// Because this test relies on golden, fo a constant seed for the ink sparkle animation.
theme: ThemeData(splashFactory: useInkSparkle ? InkSparkle.constantTurbulenceSeedSplashFactory : null),
home: StatefulBuilder(
home: StatefulBuilder(
builder: (BuildContext context, StateSetter setState) {
return Scaffold(
bottomNavigationBar: RepaintBoundary(