add withDatta : true to file selection

This commit is contained in:
2025-04-01 16:26:20 +02:00
parent 1f1bc5647b
commit b493ac495d
2 changed files with 12 additions and 8 deletions

View File

@@ -284,6 +284,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
FilePickerResult? result = await FilePicker.platform.pickFiles(
type: FileType.custom,
allowedExtensions: ['jpg', 'png'],
withData: true,
);
if (result == null) return;
final selectedFile = result.files.first;