Small fixes

This commit is contained in:
Arseni
2026-01-27 18:41:14 +03:00
parent be1d678c42
commit 6a3a60ef19
4 changed files with 30 additions and 23 deletions

View File

@@ -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,