Remove Cupertino branches from probe fixtures

Keep the chat and graph fixtures aligned with the app's Material-only UI by removing alternate Cupertino hosts, imports, and query-controlled rendering paths. Preserve the existing Material scenarios and document the focused probe coverage.
This commit is contained in:
2026-11-11 20:08:06 +00:00
parent 3f05421e8b
commit 13a5e1dee0
16 changed files with 44 additions and 285 deletions
+13 -21
View File
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:pipelines_app/features/graph/domain/graph_definition.dart';
@@ -22,9 +21,7 @@ const _nodes = [
/// A fixture-only page: one measured node per definition identity, with the
/// selected key reported so a browser click can prove the exact callback.
class _Probe extends StatefulWidget {
const _Probe({required this.cupertino});
final bool cupertino;
const _Probe();
@override
State<_Probe> createState() => _ProbeState();
@@ -64,27 +61,22 @@ class _ProbeState extends State<_Probe> {
),
],
);
return widget.cupertino
? CupertinoPageScaffold(child: SafeArea(child: page))
: Scaffold(body: SafeArea(child: page));
return Scaffold(body: SafeArea(child: page));
}
}
void main() {
final cupertino = Uri.base.queryParameters['style'] == 'cupertino';
runApp(
cupertino
? CupertinoApp(home: const _Probe(cupertino: true))
: MaterialApp(
theme: ThemeData(platform: TargetPlatform.android),
// Stock dark theme so the forced `prefers-color-scheme` capture is
// a real dark render rather than a duplicate light one.
darkTheme: ThemeData(
platform: TargetPlatform.android,
brightness: Brightness.dark,
),
themeMode: ThemeMode.system,
home: const _Probe(cupertino: false),
),
MaterialApp(
theme: ThemeData(platform: TargetPlatform.android),
// Stock dark theme so the forced `prefers-color-scheme` capture is
// a real dark render rather than a duplicate light one.
darkTheme: ThemeData(
platform: TargetPlatform.android,
brightness: Brightness.dark,
),
themeMode: ThemeMode.system,
home: const _Probe(),
),
);
}