fix(app): polish glass diff and pipeline controls
This commit is contained in:
@@ -191,4 +191,30 @@ void main() {
|
||||
await tester.pumpWidget(app(true));
|
||||
expect(find.byType(BackdropFilter), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('Material and Cupertino titles use semibold text', (
|
||||
tester,
|
||||
) async {
|
||||
for (final cupertino in [false, true]) {
|
||||
await tester.pumpWidget(
|
||||
cupertino
|
||||
? const CupertinoApp(
|
||||
home: CupertinoPageScaffold(
|
||||
navigationBar: SegmentedBar(cupertino: true, title: 'Title'),
|
||||
child: SizedBox.expand(),
|
||||
),
|
||||
)
|
||||
: const MaterialApp(
|
||||
home: Scaffold(
|
||||
appBar: SegmentedBar(cupertino: false, title: 'Title'),
|
||||
body: SizedBox.expand(),
|
||||
),
|
||||
),
|
||||
);
|
||||
expect(
|
||||
tester.widget<Text>(find.text('Title')).style?.fontWeight,
|
||||
FontWeight.w600,
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user