Remove alternate hosts from tooling probes
Keep the probe suite on the Material composition so browser fixtures and capture drivers no longer render or select Cupertino hosts. Record the final residual legacy arguments and implementation checks for the delivery gate.
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:pipelines_app/features/settings/storage/storage_screen.dart';
|
||||
import 'storage_probe_fixture.dart';
|
||||
|
||||
void main() {
|
||||
final query = Uri.base.queryParameters;
|
||||
final cupertino = query['platform'] == 'cupertino';
|
||||
final dark = query['theme'] == 'dark';
|
||||
final scale = double.tryParse(query['scale'] ?? '') ?? 1;
|
||||
final screen = StorageScreen(
|
||||
@@ -16,20 +14,10 @@ void main() {
|
||||
child: child!,
|
||||
);
|
||||
runApp(
|
||||
cupertino
|
||||
? CupertinoApp(
|
||||
theme: CupertinoThemeData(
|
||||
brightness: dark ? Brightness.dark : Brightness.light,
|
||||
),
|
||||
builder: scaled,
|
||||
home: screen,
|
||||
)
|
||||
: MaterialApp(
|
||||
theme: ThemeData(
|
||||
brightness: dark ? Brightness.dark : Brightness.light,
|
||||
),
|
||||
builder: scaled,
|
||||
home: screen,
|
||||
),
|
||||
MaterialApp(
|
||||
theme: ThemeData(brightness: dark ? Brightness.dark : Brightness.light),
|
||||
builder: scaled,
|
||||
home: screen,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user