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

@@ -1,10 +1,10 @@
import 'package:apidash_design_system/apidash_design_system.dart';
import 'package:dashbot/dashbot.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:apidash/providers/providers.dart';
import 'package:apidash/widgets/widgets.dart';
import 'package:apidash/consts.dart';
import 'package:apidash/dashbot/dashbot.dart';
import 'common_widgets/common_widgets.dart';
import 'envvar/environment_page.dart';
import 'home_page/home_page.dart';
@@ -129,15 +129,15 @@ class Dashboard extends ConsumerWidget {
),
floatingActionButton: isDashBotEnabled
? FloatingActionButton(
onPressed: () => showModalBottomSheet(
context: context,
isScrollControlled: true,
builder: (context) => const Padding(
padding: EdgeInsets.all(16.0),
child: DashBotWidget(),
backgroundColor: Theme.of(context).colorScheme.primaryContainer,
onPressed: () => showDashbotWindow(context, ref),
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 6.0,
horizontal: 10,
),
child: DashbotIcons.getDashbotIcon1(),
),
child: const Icon(Icons.help_outline),
)
: null,
);