mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 18:28:25 +08:00
feat: update default dimensions for DashbotWindowModel
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -14,7 +14,7 @@ class DashbotWindowNotifier extends StateNotifier<DashbotWindowModel> {
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user