|
|
@ -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 {
|
|
|
|
Future pickImageFromGallery() async {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
final image = await _picker.pickImage(source: ImageSource.gallery);
|
|
|
|
final image = await _picker.pickImage(source: ImageSource.gallery);
|
|
|
|