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