Remove obsolete Cupertino fixture coverage

Keep the shared UI primitive tests focused on the app's Material-only behavior and remove alternate-host fixtures that no longer represent supported rendering.
This commit is contained in:
2026-11-11 20:48:02 +00:00
parent 86a8e11438
commit c88a9e8ce8
8 changed files with 111 additions and 192 deletions
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart';
@@ -30,17 +29,13 @@ void main() {
),
actions: actions,
);
final Widget home = cupertino
? CupertinoPageScaffold(
navigationBar: bar,
child: const SizedBox.expand(),
)
: Scaffold(
extendBodyBehindAppBar: true,
appBar: bar,
body: const SizedBox.expand(),
);
final app = cupertino ? CupertinoApp(home: home) : MaterialApp(home: home);
final app = MaterialApp(
home: Scaffold(
extendBodyBehindAppBar: true,
appBar: bar,
body: const SizedBox.expand(),
),
);
return MediaQuery(
data: MediaQueryData(disableAnimations: reduced),
child: app,
@@ -74,9 +69,10 @@ void main() {
final back = find.byKey(const Key('back'));
final title = find.text('Runs');
for (final cupertino in [false, true]) {
final host = cupertino ? 'Cupertino' : 'Material';
final icon = cupertino ? CupertinoIcons.refresh : Icons.refresh;
{
const cupertino = false;
const host = 'Material';
const icon = Icons.refresh;
Widget action(String key) =>
IconButton(key: Key(key), icon: Icon(icon), onPressed: () {});