refactor: replace TextButton with HomeScreenTaskButton in home page

This commit is contained in:
Udhay-Adithya
2025-09-03 23:26:26 +05:30
parent 34c693528d
commit ebd184e14a
3 changed files with 57 additions and 66 deletions

View File

@@ -4,13 +4,15 @@ class DashbotWindowModel {
final double right;
final double bottom;
final bool isActive;
final bool isPopped;
const DashbotWindowModel({
this.width = 350,
this.height = 450,
this.width = 375,
this.height = 460,
this.right = 50,
this.bottom = 100,
this.isActive = false,
this.isPopped = false,
});
DashbotWindowModel copyWith({
@@ -19,6 +21,7 @@ class DashbotWindowModel {
double? right,
double? bottom,
bool? isActive,
bool? isPopped,
}) {
return DashbotWindowModel(
width: width ?? this.width,
@@ -26,6 +29,7 @@ class DashbotWindowModel {
right: right ?? this.right,
bottom: bottom ?? this.bottom,
isActive: isActive ?? this.isActive,
isPopped: isPopped ?? this.isPopped,
);
}
}