D1APP-25 FNB foreground color added

This commit is contained in:
MohammadTaha Basiri 2021-12-26 12:07:55 +03:30
parent e65d35d1b8
commit aad180e3f9
1 changed files with 52 additions and 38 deletions

View File

@ -8,59 +8,73 @@ 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: Row( child: Theme(
children: [ data: Theme.of(context).copyWith(
IconButton( iconTheme: IconThemeData(
onPressed: () => Navigator.of(context).pop(), color: foregroundColor,
icon: const Icon(
Icons.arrow_back,
),
), ),
const Spacer(), ),
IconButton( child: Row(
onPressed: () {}, children: [
icon: const Icon( IconButton(
DidvanIcons.bookmark_regular, onPressed: () => Navigator.of(context).pop(),
icon: const Icon(
Icons.arrow_back,
),
), ),
), const Spacer(),
IconButton( IconButton(
onPressed: () {}, onPressed: () {},
icon: const Icon( icon: const Icon(
DidvanIcons.evaluation_regular, DidvanIcons.bookmark_regular,
),
), ),
), IconButton(
SizedBox( onPressed: () {},
width: 48, icon: const Icon(
child: Row( DidvanIcons.evaluation_regular,
mainAxisAlignment: MainAxisAlignment.center, ),
children: const [
DidvanText('2'),
SizedBox(width: 4),
Icon(
DidvanIcons.chats_regular,
),
],
), ),
), SizedBox(
IconButton( width: 48,
onPressed: () {}, child: Row(
icon: const Icon( mainAxisAlignment: MainAxisAlignment.center,
Icons.more_horiz, children: [
DidvanText(
'2',
color: foregroundColor,
),
const SizedBox(width: 4),
const Icon(
DidvanIcons.chats_regular,
),
],
),
), ),
), IconButton(
], onPressed: () {},
icon: const Icon(
Icons.more_horiz,
),
),
],
),
), ),
); );
} }