单击时,我在导航抽屉中有一个配置文件选项,它将导航到配置文件屏幕,但是当用户在配置文件屏幕中更新图像时,它不会更改currentAccountPicture
。我尝试了许多更新方式,但都不断更新。
Dashhboard.dart
Scaffold(
backgroundColor: Colors.transparent,
appBar: new AppBar(
centerTitle: true,
backgroundColor: Colors.transparent,
elevation: 0.0,
),
drawer: new Drawer(
child: new Column(
children: <Widget>[
new UserAccountsDrawerHeader(
accountName: "",
accountEmail: "",
currentAccountPicture: ClipOval(
child: Image.network(
"example.com",
height: 60.0,
width: 60.0,
fit: BoxFit.cover,
),
),
),
new Column(children: drawerOptions)
],
),
),
body: _getDrawerItemWidget(widget.selectedDrawerIndex),
)
当我在profile.dart
中进行更新时,应该在Dashboard.dart
中进行更新