feat: add initial dashbot package implementation

- Created a new Dashbot package with core functionalities.
- Implemented Dashbot window model and notifier for state management.
- Added UI components including Dashbot default page and home page.
- Integrated routing for Dashbot with initial routes defined.
- Included assets for Dashbot icons and set up pubspec.yaml.
- Added tests for Dashbot window notifier to ensure functionality.
- Established a basic README and CHANGELOG for the package.
This commit is contained in:
Udhay-Adithya
2025-08-31 12:15:43 +05:30
parent a3669b1685
commit b9cc42b019
25 changed files with 802 additions and 8 deletions

View File

@@ -0,0 +1,31 @@
class DashbotWindowModel {
final double width;
final double height;
final double right;
final double bottom;
final bool isActive;
const DashbotWindowModel({
this.width = 350,
this.height = 450,
this.right = 50,
this.bottom = 100,
this.isActive = false,
});
DashbotWindowModel copyWith({
double? width,
double? height,
double? right,
double? bottom,
bool? isActive,
}) {
return DashbotWindowModel(
width: width ?? this.width,
height: height ?? this.height,
right: right ?? this.right,
bottom: bottom ?? this.bottom,
isActive: isActive ?? this.isActive,
);
}
}