mirror of
https://github.com/foss42/apidash.git
synced 2025-11-30 17:59:18 +08:00
refactor: remove unused Dashbot context and request provider; update chat viewmodel to use the existing request model
This commit is contained in:
@@ -130,15 +130,7 @@ class Dashboard extends ConsumerWidget {
|
||||
floatingActionButton: isDashBotEnabled
|
||||
? FloatingActionButton(
|
||||
backgroundColor: Theme.of(context).colorScheme.primaryContainer,
|
||||
onPressed: () => showDashbotWindow(
|
||||
context,
|
||||
ref,
|
||||
overrides: [
|
||||
dashbotRequestContextProvider.overrideWith(
|
||||
(ref) => ref.watch(appDashbotRequestContextProvider),
|
||||
),
|
||||
],
|
||||
),
|
||||
onPressed: () => showDashbotWindow(context, ref),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
vertical: 6.0,
|
||||
|
||||
Reference in New Issue
Block a user