return Scaffold(
appBar: AppBar(
backgroundColor: Colors.white,
elevation: 0,
title: Text(
'Chats',
style: TextStyle(fontWeight: FontWeight.bold, color: Colors.black, fontSize: 25),
),
leading: CircleAvatar(
maxRadius: 6.0,
backgroundImage: AssetImage('images/neon.jpg'),
),
),
); // Scaffold
class FacebookAppbar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
backgroundColor: Colors.white,
title: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Image.asset(
'assets/images/facebook_icon.png',
fit: BoxFit.cover,
height: 35.0,
),
],
),
actions: <Widget>[
IconButton(
padding: EdgeInsets.all(5.0),
icon: Image.asset('assets/images/facebook_search.png'),
onPressed: () {
// Implement navigation to shopping cart page here...
print('Click Search');
},
),
IconButton(
padding: EdgeInsets.all(5.0),
icon: Image.asset('assets/images/facebook_msg.png'),
onPressed: () {
// Implement navigation to shopping cart page here...
print('Click Message');
},
),
],
),
body: Container(
decoration: BoxDecoration(color: Colors.grey),
)));
}
}