How to Replace Title with Image as an Icon Button on appBar in Flutter
Feb 12, 2021
The title
property takes a Widget
, so you can pass any widget to it :
appBar: AppBar(
title: Padding(padding: const EdgeInsets.all(5.0),
),actions: [
IconButton(
iconSize: 30.0,
icon: Image.asset('assets/home-146585_1280.png'),
onPressed: () {},
),
],
Thank you for reading. Follow for more.