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

View File

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

View File

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

View File

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