mirror of
https://github.com/foss42/apidash.git
synced 2025-10-19 12:43:26 +08:00
fix: click cursor on hover & cleanup
This commit is contained in:
@ -106,6 +106,7 @@ class CollectionPane extends ConsumerWidget {
|
||||
const Expanded(
|
||||
child: RequestList(),
|
||||
),
|
||||
kVSpacer5
|
||||
],
|
||||
),
|
||||
);
|
||||
|
@ -1,7 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:apidash/extensions/context_extensions.dart';
|
||||
import 'package:apidash/providers/ui_providers.dart';
|
||||
import 'package:apidash/extensions/extensions.dart';
|
||||
import 'package:apidash/providers/providers.dart';
|
||||
|
||||
class BottomNavBar extends ConsumerWidget {
|
||||
const BottomNavBar({super.key});
|
||||
@ -157,12 +157,8 @@ Widget customNavigationDestination(
|
||||
Function()? onTap,
|
||||
}) {
|
||||
bool isSelected = railIdx == buttonIdx;
|
||||
return TooltipVisibility(
|
||||
visible: context.isCompactWindow,
|
||||
child: Tooltip(
|
||||
message: label,
|
||||
triggerMode: TooltipTriggerMode.longPress,
|
||||
verticalOffset: 42,
|
||||
return MouseRegion(
|
||||
cursor: SystemMouseCursors.click,
|
||||
child: GestureDetector(
|
||||
behavior: HitTestBehavior.translucent,
|
||||
onTap: isSelected
|
||||
@ -203,10 +199,7 @@ Widget customNavigationDestination(
|
||||
isSelected ? selectedIcon : icon,
|
||||
color: isSelected
|
||||
? Theme.of(context).colorScheme.onSecondaryContainer
|
||||
: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSurface
|
||||
.withOpacity(0.65),
|
||||
: Theme.of(context).colorScheme.onSurface.withOpacity(0.65),
|
||||
),
|
||||
),
|
||||
),
|
||||
@ -217,9 +210,7 @@ Widget customNavigationDestination(
|
||||
style: Theme.of(context).textTheme.labelSmall!.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: isSelected
|
||||
? Theme.of(context)
|
||||
.colorScheme
|
||||
.onSecondaryContainer
|
||||
? Theme.of(context).colorScheme.onSecondaryContainer
|
||||
: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSurface
|
||||
@ -230,6 +221,5 @@ Widget customNavigationDestination(
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user