upload profile

dev
Sneha 2 years ago
parent ac1f1560aa
commit 5db126b7f2

@ -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);

Loading…
Cancel
Save