mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
refactor: replace TextButton with HomeScreenTaskButton in home page
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user