The action buttons on the appBar in Flutter are aligned to the right side as default, I would like to align my FlatButton to the left, next to the title/logo.
Can anyone advise please?
Below are my codes:
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
backgroundColor: Colors.white,
title: const Text('Logo'),
elevation: 0.0,
actions: <Widget>[
FlatButton(
onPressed: () {
_select(choices[0]);
},
child: Text(
'Portfolio',
style: TextStyle(
fontFamily: 'Futura',
fontSize: 12,
color: Color.fromRGBO(80, 86, 89, 100)),
)),
Cheers, Karen
I used
Row
for the title and just put in theFlatButton
there.