Complete Material-only APIs and fixtures

Remove obsolete control-family flags and icon metadata across all callers, dead alternate themes and host helpers, obsolete test setup, and the unused icon-font dependency. Preserve native Material Back transitions. Make navigation fixtures independent of update plugins and answer auxiliary shell snapshots so the complete application suite can run deterministically.
This commit is contained in:
2026-11-11 21:55:39 +00:00
parent 63b2fd12cd
commit 9551eceaed
222 changed files with 540 additions and 1351 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';
@@ -17,7 +16,6 @@ void main() {
await pumpIosMaterialChat(tester, FakeChatGateway());
expect(find.byType(Scaffold), findsWidgets);
expect(find.byType(CupertinoPageScaffold), findsNothing);
const message = 'No chat sessions on this server yet.';
expect(find.text(message), findsOneWidget);
@@ -42,7 +40,15 @@ void main() {
expect(find.text(message), findsOneWidget);
expectNormalTextStyle(tester, message);
expect(find.text('No chat sessions on this server yet.'), findsNothing);
expect(find.widgetWithText(CupertinoButton, 'Retry'), findsNothing);
expect(
find.ancestor(
of: find.text('Retry'),
matching: find.byWidgetPredicate(
(widget) => widget is ButtonStyleButton,
),
),
findsOneWidget,
);
expect(find.text('Retry'), findsOneWidget);
});
}
@@ -56,8 +56,7 @@ Future<void> pumpMaterialChat(
await tester.pumpAndSettle();
}
/// The screen's iOS/macOS path: Cupertino controls under the app's ordinary
/// `MaterialApp` root, with no Material or CupertinoTheme ancestor.
/// The screen's iOS/macOS path uses the same ordinary Material app root.
Future<void> pumpIosMaterialChat(
WidgetTester tester,
FakeChatGateway gateway, {
@@ -69,7 +69,7 @@ void main() {
await tester.pumpAndSettle();
final context = tester.element(find.byType(ChatMessageView));
final fontSize = chatMessageTextStyle(context, false)!.fontSize!;
final fontSize = chatMessageTextStyle(context)!.fontSize!;
final line = fontSize * scale;
Rect rect(String text) =>
tester.getRect(find.textContaining(text, findRichText: true).first);