|
|
@ -41,14 +41,14 @@ class _DashboardState extends State<Dashboard> {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*Future<void> uploadProfileApi(image) async {
|
|
|
|
Future<void> uploadProfileApi(image) async {
|
|
|
|
|
|
|
|
|
|
|
|
var payload = new Map<String, dynamic>();
|
|
|
|
var payload = new Map<String, dynamic>();
|
|
|
|
payload["picture"] = image.toString();
|
|
|
|
payload["picture"] = image.toString();
|
|
|
|
var response1= await AppSettings.updateProfilePicture(payload);
|
|
|
|
var response1= await AppSettings.updateProfilePicture(payload);
|
|
|
|
|
|
|
|
|
|
|
|
print(response1);
|
|
|
|
print(response1);
|
|
|
|
}*/
|
|
|
|
}
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
|
|
|
|
|
|
|
@ -100,7 +100,7 @@ class _DashboardState extends State<Dashboard> {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
AppSettings.updatedImage = imageTemp;
|
|
|
|
AppSettings.updatedImage = imageTemp;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// uploadProfileApi(AppSettings.updatedImage);
|
|
|
|
uploadProfileApi(AppSettings.updatedImage);
|
|
|
|
AppSettings.saveProfile(image.path);
|
|
|
|
AppSettings.saveProfile(image.path);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -118,7 +118,7 @@ class _DashboardState extends State<Dashboard> {
|
|
|
|
AppSettings.updatedImage = imageTemp;
|
|
|
|
AppSettings.updatedImage = imageTemp;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//uploadProfileApi(AppSettings.updatedImage);
|
|
|
|
uploadProfileApi(AppSettings.updatedImage);
|
|
|
|
AppSettings.saveProfile(image.path);
|
|
|
|
AppSettings.saveProfile(image.path);
|
|
|
|
|
|
|
|
|
|
|
|
} on PlatformException catch (e) {
|
|
|
|
} on PlatformException catch (e) {
|
|
|
|