Skip to content

Commit dc6977a

Browse files
committed
fixes null imageUrl and using https for password changing
1 parent cce341f commit dc6977a

File tree

7 files changed

+16
-18
lines changed

7 files changed

+16
-18
lines changed

lib/data/local/entities/user_entity.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ abstract class UserEntity implements Built<UserEntity, UserEntityBuilder> {
1414
@BuiltValueField(wireName: 'created_at')
1515
DateTime get createdAt;
1616

17+
@nullable
1718
@BuiltValueField(wireName: 'image_url')
1819
String get imageUrl;
1920

lib/data/local/entities/user_entity.g.dart

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/data/remote/api_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class ApiService implements RemoteDataSource {
7676
String newPassword,
7777
String token,
7878
) async {
79-
final url = Uri.http(baseUrl, '/users/$email/password');
79+
final url = Uri.https(baseUrl, '/users/$email/password');
8080
final body = {'password': password, 'new_password': newPassword};
8181
final json = await NetworkUtils.put(
8282
url,

lib/data/remote/response/user_response.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ abstract class UserResponse
1515
@BuiltValueField(wireName: 'created_at')
1616
DateTime get createdAt;
1717

18+
@nullable
1819
@BuiltValueField(wireName: 'image_url')
1920
String get imageUrl;
2021

lib/data/remote/response/user_response.g.dart

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/domain/models/user.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ abstract class User implements Built<User, UserBuilder> {
99

1010
DateTime get createdAt;
1111

12+
@nullable
1213
String get imageUrl;
1314

1415
User._();

lib/domain/models/user.g.dart

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)