feat: Button to remove avatar

This commit is contained in:
Christian Pauly 2021-05-31 19:33:40 +02:00
commit 2840e62909
5 changed files with 71 additions and 11 deletions

View file

@ -63,8 +63,11 @@ class SettingsView extends StatelessWidget {
],
backgroundColor: Theme.of(context).appBarTheme.color,
flexibleSpace: FlexibleSpaceBar(
background: ContentBanner(controller.profile?.avatarUrl,
onEdit: controller.setAvatarAction),
background: ContentBanner(
controller.profile?.avatarUrl,
onEdit: controller.setAvatarAction,
defaultIcon: Icons.account_circle_outlined,
),
),
),
],