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