Просто настройте left:
в Padding()
:
actions: <Widget>[
Row(
children: <Widget>[
Container(
child: Text(name, style: TextStyle(color: Color.fromRGBO(49, 39, 79, 1), fontWeight: FontWeight.bold,fontSize: 20))
),
/// Play with the parameter `left: ...`
Padding(padding: const EdgeInsets.only(left: 30, right: 8.0, top: 8.0, bottom: 8.0),
child: CircleAvatar(
backgroundImage: NetworkImage(imageUrl)),
),
],
),
]
Другое решение: используйте переменную name
в AppBar-Title:
title: Text("Welcome Back, $name", style: TextStyle(color: Color.fromRGBO(49, 39, 79, 1), fontWeight: FontWeight.bold,fontSize: 20),),
actions: <Widget>[
Row(
children: <Widget>[
/// Play with the parameter `left: ...`
Padding(padding: const EdgeInsets.only(left: 30, right: 8.0, top: 8.0, bottom: 8.0),
child: CircleAvatar(
backgroundImage: NetworkImage(imageUrl)),
),
],
),
]
Результат:
![enter image description here](https://i.stack.imgur.com/0382V.png)