mirror of
https://github.com/foss42/apidash.git
synced 2025-12-10 23:36:46 +08:00
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:
@@ -0,0 +1,40 @@
|
||||
import 'package:apidash_design_system/apidash_design_system.dart'
|
||||
show kVSpacer20, kVSpacer16, kVSpacer10;
|
||||
import 'package:dashbot/core/utils/dashbot_icons.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class DashbotDefaultPage extends StatelessWidget {
|
||||
const DashbotDefaultPage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
kVSpacer16,
|
||||
DashbotIcons.getDashbotIcon1(width: 60),
|
||||
|
||||
kVSpacer20,
|
||||
Text(
|
||||
'Hello there!',
|
||||
style: TextStyle(fontSize: 22, fontWeight: FontWeight.w800),
|
||||
),
|
||||
kVSpacer10,
|
||||
Text(
|
||||
'Request not made yet',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
Text(
|
||||
"Why not go ahead and make one?",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w200),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user