I have to create a Bottom Navigation Bar with a background for each item like below.
Asked
Active
Viewed 67 times
-1
-
can you include your current snippet and what is the issue you are getting – Md. Yeasin Sheikh Feb 17 '23 at 19:12
1 Answers
1
Try using some code like this:
Material(
color: Colors.white,
child: Ink(
decoration: const ShapeDecoration(
color: Colors.blue,
shape: RoundedRectangleBorder(),
),
child: IconButton(
icon: const Icon(Icons.android),
color: Colors.white,
onPressed: () {},
),
),
);
Which gives an output of this button: Button
Here is the link to the documentation about this: Link to documentation
Hope this helps :)

hazahaza
- 13
- 3
-
Thank you @gazahaza but I want to give the background to icon and label both. – Ashirwad Kumar Feb 18 '23 at 21:02