From 6b4c0421f8714960f21c3b48ee37b7011d08f2fd Mon Sep 17 00:00:00 2001 From: Udhay-Adithya Date: Mon, 8 Sep 2025 16:13:38 +0530 Subject: [PATCH] feat: update default dimensions for DashbotWindowModel --- lib/dashbot/core/model/dashbot_window_model.dart | 4 ++-- lib/dashbot/core/providers/dashbot_window_notifier.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dashbot/core/model/dashbot_window_model.dart b/lib/dashbot/core/model/dashbot_window_model.dart index 38987d72..e466a77a 100644 --- a/lib/dashbot/core/model/dashbot_window_model.dart +++ b/lib/dashbot/core/model/dashbot_window_model.dart @@ -7,8 +7,8 @@ class DashbotWindowModel { final bool isPopped; const DashbotWindowModel({ - this.width = 375, - this.height = 460, + this.width = 400, + this.height = 475, this.right = 50, this.bottom = 100, this.isActive = false, diff --git a/lib/dashbot/core/providers/dashbot_window_notifier.dart b/lib/dashbot/core/providers/dashbot_window_notifier.dart index 7f209fce..0bcc8be7 100644 --- a/lib/dashbot/core/providers/dashbot_window_notifier.dart +++ b/lib/dashbot/core/providers/dashbot_window_notifier.dart @@ -14,7 +14,7 @@ class DashbotWindowNotifier extends StateNotifier { void updateSize(double dx, double dy, Size screenSize) { final newWidth = - (state.width - dx).clamp(375, screenSize.width - state.right); + (state.width - dx).clamp(400, screenSize.width - state.right); final newHeight = (state.height - dy).clamp(460, screenSize.height - state.bottom);