fix: nav bar selectedIcon, color

This commit is contained in:
DenserMeerkat
2024-03-01 20:09:23 +05:30
parent 54508de428
commit 981328d702
4 changed files with 12 additions and 15 deletions

View File

@ -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),

View File

@ -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(),
),
],

View File

@ -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();
}
}

View File

@ -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,