feat: update default height and adjust height clamping in DashbotWindowNotifier

This commit is contained in:
Udhay-Adithya
2025-09-24 21:21:02 +05:30
parent 567a235011
commit e2d7e6d3e1
3 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ class DashbotWindowModel {
const DashbotWindowModel({
this.width = 400,
this.height = 475,
this.height = 500,
this.right = 50,
this.bottom = 100,
this.isActive = false,

View File

@@ -16,7 +16,7 @@ class DashbotWindowNotifier extends StateNotifier<DashbotWindowModel> {
final newWidth =
(state.width - dx).clamp(400, screenSize.width - state.right);
final newHeight =
(state.height - dy).clamp(460, screenSize.height - state.bottom);
(state.height - dy).clamp(515, screenSize.height - state.bottom);
state = state.copyWith(
width: newWidth.toDouble(),

View File

@@ -40,6 +40,7 @@ class _DashbotHomePageState extends ConsumerState<DashbotHomePage> {
return Container(
padding: const EdgeInsets.all(16),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
kVSpacer16,
DashbotIcons.getDashbotIcon1(width: 60),
@@ -165,6 +166,7 @@ class _DashbotHomePageState extends ConsumerState<DashbotHomePage> {
),
],
),
kVSpacer20,
],
),
);