mirror of
https://github.com/foss42/apidash.git
synced 2025-06-05 01:46:21 +08:00
fix: nav bar selectedIcon, color
This commit is contained in:
@ -17,8 +17,13 @@ class BottomNavBar extends ConsumerWidget {
|
||||
width: MediaQuery.of(context).size.width,
|
||||
padding: EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom),
|
||||
decoration: BoxDecoration(
|
||||
border: Border(
|
||||
top: BorderSide(
|
||||
color: Theme.of(context).colorScheme.onInverseSurface,
|
||||
),
|
||||
),
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
child: Material(
|
||||
type: MaterialType.transparency,
|
||||
child: Row(
|
||||
@ -121,7 +126,7 @@ Widget customNavigationDestination(
|
||||
onTap?.call();
|
||||
},
|
||||
child: Icon(
|
||||
icon,
|
||||
isSelected ? selectedIcon : icon,
|
||||
color: isSelected
|
||||
? Theme.of(context).colorScheme.onSecondaryContainer
|
||||
: Theme.of(context).colorScheme.onSurface.withOpacity(0.65),
|
||||
|
@ -117,6 +117,7 @@ class _MobileDashboardState extends ConsumerState<MobileDashboard> {
|
||||
right: 0,
|
||||
height: 70 + MediaQuery.of(context).padding.bottom,
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.easeOut,
|
||||
child: const BottomNavBar(),
|
||||
),
|
||||
],
|
||||
|
@ -115,12 +115,3 @@ class _RequestPaneState extends State<RequestPane>
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
class ViewCodeButton extends StatelessWidget {
|
||||
const ViewCodeButton({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container();
|
||||
}
|
||||
}
|
||||
|
@ -73,8 +73,8 @@ class ResponsePaneHeader extends StatelessWidget {
|
||||
Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
const TextSpan(
|
||||
text: "Response (",
|
||||
TextSpan(
|
||||
text: !kIsMobile ? "Response (" : "",
|
||||
),
|
||||
TextSpan(
|
||||
text: "$responseStatus",
|
||||
@ -86,8 +86,8 @@ class ResponsePaneHeader extends StatelessWidget {
|
||||
fontFamily: kCodeStyle.fontFamily,
|
||||
),
|
||||
),
|
||||
const TextSpan(
|
||||
text: ")",
|
||||
TextSpan(
|
||||
text: !kIsMobile ? ")" : "",
|
||||
),
|
||||
],
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
|
Reference in New Issue
Block a user