Skip to content

Commit e480fc0

Browse files
committed
some changes added
1 parent f5bc899 commit e480fc0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/Profile/ProfileScreen.dart

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,18 @@ class _ProfileScreenState extends State<ProfileScreen> {
8989
);
9090
}
9191
}
92+
93+
// Future<http.StreamedResponse> patchImage(String filepath, String url) async {
94+
// print(filename);
95+
// String token = await storage.read(key: "token");
96+
// url = formater(url);
97+
// var request = http.MultipartRequest('PATCH', Uri.parse(url));
98+
// request.files.add(await http.MultipartFile.fromPath('img', filename));
99+
// request.headers.addAll({
100+
// "Content-type": "multipart/form-data",
101+
// "Authorization": "Bearer $token",
102+
// });
103+
// print(request.files[0].filename);
104+
// var response = await request.send();
105+
// return response;
106+
// }

0 commit comments

Comments
 (0)