Remove minHeight constraint

This commit is contained in:
Elias Bonnici 2024-04-22 15:15:35 +02:00
parent cb3e491c32
commit c071b9b8f7
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF
2 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@ import 'dart:ui';
class WindowDefaults {
static const minWidth = 300.0;
static const minHeight = 400.0;
static const minSize = Size(minWidth, minHeight);
static const minSize = Size(minWidth, 0.0);
static const bounds = Rect.fromLTWH(10.0, 10.0, 1100.0, 700.0);
}

View File

@ -49,7 +49,7 @@ static void my_application_activate(GApplication* application) {
gtk_window_set_default_size(window, 1100, 700);
// Sets the minimum window size, should match desktop/window_manager_helper/defaults.dart
gtk_widget_set_size_request(GTK_WIDGET(window), 300, 400);
gtk_widget_set_size_request(GTK_WIDGET(window), 300, 0);
gtk_widget_realize(GTK_WIDGET(window));
g_autoptr(FlDartProject) project = fl_dart_project_new();