
Adds an `image` field to the user data structure to support profile pictures. Introduces a new profile page and sets up navigation from the home screen. Changes the product list page provider to auto dispose for improved resource management.
27 lines
845 B
Dart
27 lines
845 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'user_struct.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_UserStruct _$UserStructFromJson(Map<String, dynamic> json) => _UserStruct(
|
|
id: json['id'] as String?,
|
|
image: json['image'] as String?,
|
|
firstName: json['firstName'] as String?,
|
|
lastName: json['lastName'] as String?,
|
|
email: json['email'] as String?,
|
|
phone: json['phone'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$UserStructToJson(_UserStruct instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'image': instance.image,
|
|
'firstName': instance.firstName,
|
|
'lastName': instance.lastName,
|
|
'email': instance.email,
|
|
'phone': instance.phone,
|
|
};
|