Skip to content

Commit

Permalink
fix: #12 remove minmax xy from profile submit req
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBeaulieu committed Jul 9, 2024
1 parent 14dbd81 commit eebb40d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions lib/src/auth/profile_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class ProfileService {
String token,
int userId,
String base64Image,
int imageSize,
) async {
return await http.patch(
Uri.parse('${AppConst.baseURL}/api/user/$userId/profile-picture/'),
Expand All @@ -98,10 +97,6 @@ class ProfileService {
},
body: jsonEncode({
'profile_picture': base64Image,
'minX': 0,
'minY': 0,
'maxX': imageSize,
'maxY': imageSize,
}),
);
}
Expand Down
3 changes: 0 additions & 3 deletions lib/src/auth/profile_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ class ProfileViewState extends State<ProfileView> {
submitProfilePicture(
context,
'data:image/jpeg;base64,$base64Image',
decodedImage.height,
);
}
} else {
Expand Down Expand Up @@ -210,7 +209,6 @@ class ProfileViewState extends State<ProfileView> {
void submitProfilePicture(
BuildContext context,
String base64Image,
int size,
) async {
// Start loading overlay during server call
if (context.mounted) {
Expand All @@ -221,7 +219,6 @@ class ProfileViewState extends State<ProfileView> {
await widget.settingsController.getAuthToken(),
widget.settingsController.userId,
base64Image,
size,
).then((response) async {
if (response.statusCode == 204) {
// Request user info from server and perform a view refresh
Expand Down

0 comments on commit eebb40d

Please sign in to comment.