I'm planning to use my custom icon instead of using material icon but some reason I cannot make the image smaller. Any idea of suggestion on how I can make the image to smaller like the material icon on the right side.
I'm applied the width and height but some reason they can't get smaller than this. (attached image)
Widget textField() {
return TextField(
enabled: false,
decoration: InputDecoration(
contentPadding: EdgeInsets.symmetric(vertical: 10.0),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.transparent),
borderRadius: BorderRadius.circular(10.0),
),
border: OutlineInputBorder(
borderSide: BorderSide(color: Colors.white),
borderRadius: BorderRadius.all(
Radius.circular(10.0),
),
),
hintStyle: TextStyle(
fontSize: 18, color: Theme.of(context).secondaryHeaderColor),
hintText: 'Search',
prefixIcon: Padding(
padding: EdgeInsets.all(2),
child: SizedBox(
width: 10,
height: 10,
child: Image.asset(
'assets/icons/nav-icons/Explore.png',
),
),
),
suffixIcon:
Icon(Icons.mic, color: Theme.of(context).secondaryHeaderColor),
filled: true,
fillColor: Theme.of(context).primaryColor),
);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…