Respect Cupertino brightness and render file markdown

This commit is contained in:
2026-11-07 01:46:05 +00:00
parent 84a03bea8d
commit d8ef2b6109
5 changed files with 58 additions and 31 deletions
@@ -210,10 +210,15 @@ void main() {
addTearDown(controller.dispose);
await tester.pumpWidget(
CupertinoApp(
theme: const CupertinoThemeData(brightness: Brightness.dark),
home: CupertinoPageScaffold(child: FilesPanel(controller: controller)),
),
);
await tester.pumpAndSettle();
expect(
Theme.of(tester.element(find.byType(ListTile).first)).brightness,
Brightness.dark,
);
await tester.tap(find.text('archive.zip'));
await tester.pumpAndSettle();
expect(find.text('Download'), findsOneWidget);