D1APP-25 FNB foreground color added
This commit is contained in:
parent
e65d35d1b8
commit
aad180e3f9
|
|
@ -8,18 +8,28 @@ class FloatingNavigationBar extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final Color foregroundColor =
|
||||||
|
Theme.of(context).brightness == Brightness.dark
|
||||||
|
? Theme.of(context).colorScheme.focusedBorder
|
||||||
|
: Theme.of(context).colorScheme.focused;
|
||||||
return Container(
|
return Container(
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 32, vertical: 20),
|
margin: const EdgeInsets.only(left: 32, right: 32, bottom: 20),
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 48,
|
height: 48,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.navigation,
|
||||||
borderRadius: BorderRadius.circular(24),
|
borderRadius: BorderRadius.circular(24),
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
color: Theme.of(context).colorScheme.cardBorder,
|
color: Theme.of(context).colorScheme.cardBorder,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
child: Theme(
|
||||||
|
data: Theme.of(context).copyWith(
|
||||||
|
iconTheme: IconThemeData(
|
||||||
|
color: foregroundColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
IconButton(
|
IconButton(
|
||||||
|
|
@ -45,10 +55,13 @@ class FloatingNavigationBar extends StatelessWidget {
|
||||||
width: 48,
|
width: 48,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: const [
|
children: [
|
||||||
DidvanText('2'),
|
DidvanText(
|
||||||
SizedBox(width: 4),
|
'2',
|
||||||
Icon(
|
color: foregroundColor,
|
||||||
|
),
|
||||||
|
const SizedBox(width: 4),
|
||||||
|
const Icon(
|
||||||
DidvanIcons.chats_regular,
|
DidvanIcons.chats_regular,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
@ -62,6 +75,7 @@ class FloatingNavigationBar extends StatelessWidget {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue