import 'package:flutter/material.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:getflutter/getflutter.dart'; import 'package:url_launcher/url_launcher.dart'; import './icons_row.dart'; import '../global.dart'; AppBar appBarWithLogo(BuildContext context) { return AppBar( backgroundColor: Colors.grey[900], automaticallyImplyLeading: false, ////////////// appBar title title: Image.asset('assets/images/logo.png'), ////////////////// appBar actions actions: [ // facebook icon GFIconButton( color: Colors.blue, //shape: GFIconButtonShape.circle, icon: Icon(FontAwesome.facebook_f), onPressed: () async { var url = G.facebookLink; if (await canLaunch(url)) { await launch(url); } else { throw 'Could not launch $url'; } } ), SizedBox(width: 12.0), // youtube icon GFIconButton( color: Colors.red, icon: Icon(FontAwesome.youtube), // phone onPressed: () async { var url = G.youtubeLink; if (await canLaunch(url)) { await launch(url); } else { throw 'Could not launch $url'; } } ), ], bottom: PreferredSize( child: Container( child: IconsRow(), ), preferredSize: Size.fromHeight(22.0), ), ); }