fix(ci): replace unused main.dart test wrappers with the public root shell

The unused-code gate flags debugSetCrashReporterReady (referenced nowhere)
and the formFactorScaleForTesting/rootShellForTesting wrappers (referenced
only from tests, which the lib-scoped check cannot see). Delete the dead
setter and let the car-scale test build the real rootShell and
FormFactorScale directly.
This commit is contained in:
edde746
2026-08-09 18:51:47 +02:00
parent df0570b861
commit 0ee5672426
2 changed files with 7 additions and 17 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ void main() {
child: MaterialApp(
theme: ThemeData(extensions: const [testMonoTokens]),
home: const SizedBox.expand(),
builder: (context, child) => app.rootShellForTesting(child: child),
builder: (context, child) => app.rootShell(child),
),
),
);
@@ -142,7 +142,7 @@ Future<void> _pumpScaleHarness(WidgetTester tester, {required ValueChanged<Media
TranslationProvider(
child: MaterialApp(
theme: ThemeData(extensions: const [testMonoTokens]),
home: app.formFactorScaleForTesting(
home: app.FormFactorScale(
child: Builder(
builder: (context) {
onMediaQuery(MediaQuery.of(context));