How to replace title with image in AppBar

  appBar: AppBar(
          title: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                  Image.asset(
                 'assets/logo.png',
                  fit: BoxFit.contain,
                  height: 32,
              ),
              Container(
                  padding: const EdgeInsets.all(8.0), child: Text('YourAppTitle'))
            ],

          ),
  )

The title property takes a Widget, so you can pass any widget to it.

For example, an image added to assets

Scaffold(
  appBar: AppBar(
    title: Image.asset('assets/title.png', fit: BoxFit.cover),
  ),
  body: ...
)

More info

Tags:

Dart

Flutter