Small fixes
This commit is contained in:
@@ -41,6 +41,7 @@ class ImageTile extends AbstractSettingsTile {
|
||||
|
||||
Future<void> _pickImage(BuildContext context) async {
|
||||
final picker = ImagePicker();
|
||||
final scaffoldMessenger = ScaffoldMessenger.of(context);
|
||||
final locs = AppLocalizations.of(context)!;
|
||||
final picked = await picker.pickImage(
|
||||
source: ImageSource.gallery,
|
||||
@@ -55,8 +56,8 @@ class ImageTile extends AbstractSettingsTile {
|
||||
CachedNetworkImage.evictFromCache(imageUrl!);
|
||||
}
|
||||
} catch (e) {
|
||||
notifyUserOfErrorX(
|
||||
context: context,
|
||||
showErrorSnackBar(
|
||||
scaffoldMessenger: scaffoldMessenger,
|
||||
errorSituation: imageUpdateError ?? locs.settingsImageUpdateError,
|
||||
exception: e,
|
||||
appLocalizations: locs,
|
||||
|
||||
Reference in New Issue
Block a user