This commit is contained in:
Thomas Güttler
2026-04-18 13:43:42 +02:00
parent 33d1e21bc9
commit a423c4d4ca
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ static void my_application_activate(GApplication* application) {
GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
gtk_window_set_default_size(window, 1280, 800);
gtk_widget_set_size_request(GTK_WIDGET(window), 400, 300);
gtk_widget_show(GTK_WIDGET(window));
g_autoptr(FlDartProject) project = fl_dart_project_new();
+22
View File
@@ -145,5 +145,27 @@ void main() {
expect(find.text('Add account'), findsOneWidget);
});
testWidgets('AppBar does not overflow at narrow window size', (tester) async {
tester.view.physicalSize = const Size(400, 300);
tester.view.devicePixelRatio = 1.0;
addTearDown(tester.view.resetPhysicalSize);
addTearDown(tester.view.resetDevicePixelRatio);
await tester.pumpWidget(buildApp(
initialLocation: '/accounts',
overrides: [
accountRepositoryProvider
.overrideWithValue(FakeAccountRepository()),
mailboxRepositoryProvider
.overrideWithValue(FakeMailboxRepository()),
emailRepositoryProvider
.overrideWithValue(FakeEmailRepository()),
],
));
await tester.pumpAndSettle();
expect(tester.takeException(), isNull);
});
});
}