Files
pipelines/app/test/features/changes/widget_hosts.dart
T
alan edc503b228 Remove Cupertino changes branches
Keep the Material-only changes feature while preserving public Cupertino parameters for callers. Remove Cupertino-only widgets, imports, hosts, and tests because the app never reaches that path.
2026-11-11 16:22:09 +00:00

20 lines
596 B
Dart

import 'package:flutter/material.dart';
/// The host the Changes widget tests share. The app is Material-only on every
/// platform, so the tests state the host explicitly instead of mutating a
/// global debug override.
Widget materialHost(
Widget child, {
TextScaler scaler = TextScaler.noScaling,
Brightness brightness = Brightness.light,
}) {
return MaterialApp(
theme: ThemeData(brightness: brightness),
builder: (context, app) => MediaQuery(
data: MediaQuery.of(context).copyWith(textScaler: scaler),
child: app!,
),
home: Scaffold(body: child),
);
}