|
|
|
@ -89,17 +89,6 @@ class _DashboardState extends State<Dashboard> {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<String> getStorageDirectory() async {
|
|
|
|
|
|
|
|
|
|
if (Platform.isAndroid) {
|
|
|
|
|
|
|
|
|
|
return (await getExternalStorageDirectory()).path;
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
return (await getApplicationDocumentsDirectory()).path;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future pickImageFromGallery() async {
|
|
|
|
|
try {
|
|
|
|
|
final image = await _picker.pickImage(source: ImageSource.gallery);
|
|
|
|
|