mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 11:27:50 +08:00
DashBot providers
This commit is contained in:
@@ -131,6 +131,7 @@ class _DashBotWidgetState extends ConsumerState<DashBotWidget> {
|
||||
|
||||
Widget _buildHeader(BuildContext context) {
|
||||
final isMinimized = ref.watch(dashBotMinimizedProvider);
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 16, 16, 0),
|
||||
child: Row(
|
||||
@@ -161,7 +162,8 @@ class _DashBotWidgetState extends ConsumerState<DashBotWidget> {
|
||||
icon: const Icon(Icons.close, size: 20),
|
||||
tooltip: 'Close',
|
||||
onPressed: () {
|
||||
ref.read(dashBotVisibilityProvider.notifier).state = false;
|
||||
ref.read(isDashBotEnabledStateProvider.notifier).state =
|
||||
false;
|
||||
},
|
||||
),
|
||||
IconButton(
|
||||
|
||||
Reference in New Issue
Block a user