Im trying to change the size of the image, i try to change the container size but not working. How do i change the size of my image?
the Scale on decorationImage is not affect the size of my image
InkWell(
onTap: () {
setState(() {
_selectedItemIndex = 0;
});
},
child: AnimatedContainer(
height: 0 == _selectedItemIndex ? 85 : 70,
width: 0 == _selectedItemIndex
? MediaQuery.of(context).size.width / 6 + 10
: MediaQuery.of(context).size.width / 6 - 2.5,
duration: const Duration(seconds: 0),
curve: Curves.easeIn,
child: Material(
color: 0 == _selectedItemIndex ? Colors.blue : Grey,
child: Container(
decoration: BoxDecoration(
image: DecorationImage(
alignment: Alignment(0, -0.45),
scale: 10,
image: AssetImage('assets/images/home.png'),
),
color: Colors.transparent,
borderRadius: BorderRadius.all(Radius.circular(25)),
),
child: Container(
alignment: Alignment(0, 1),
child: Text(
"home",
style: TextStyle(
fontWeight: FontWeight.bold,
),
),
),
),
),
),
),