1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 22:39:22 +00:00

Add no account image screen

This commit is contained in:
Pierre HUBERT 2020-04-16 19:36:34 +02:00
parent ef9510e731
commit 7bb805bffd

View File

@ -60,7 +60,22 @@ class __AccountImageSettingsBodyState extends State<_AccountImageSettingsBody> {
}
/// When user has no account image yet
List<SettingsTile> _buildNoAccountImageTiles() {}
List<SettingsTile> _buildNoAccountImageTiles() {
return [
SettingsTile(
title: tr("No account image yet..."),
leading: NetworkImageWidget(
url: _settings.imageURL,
width: 40,
),
),
// Upload new account image
SettingsTile(
title: tr("Upload an account image"),
onTap: () => _uploadAccountImage(),
),
];
}
/// When the user has an account image
List<SettingsTile> _buildHasAccountImageTiles() {