before rediense
This commit is contained in:
@@ -26,10 +26,13 @@ class GeneralDrawerHeader extends StatelessWidget {
|
||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
subtitle: Text(
|
||||
context.read<MyUserBloc>().state.user!.email ?? '',
|
||||
context.read<MyUserBloc>().state.user!.email ??
|
||||
context.read<MyUserBloc>().state.user!.phone ??
|
||||
'',
|
||||
style: const TextStyle(fontSize: 12),
|
||||
),
|
||||
leading: context.read<MyUserBloc>().state.user!.picture == ""
|
||||
leading: context.read<MyUserBloc>().state.user!.picture == "" ||
|
||||
context.read<MyUserBloc>().state.user!.picture == null
|
||||
? Container(
|
||||
width: 80,
|
||||
height: 80,
|
||||
@@ -51,7 +54,7 @@ class GeneralDrawerHeader extends StatelessWidget {
|
||||
shape: BoxShape.circle,
|
||||
image: DecorationImage(
|
||||
image: NetworkImage(
|
||||
context.read<MyUserBloc>().state.user!.picture!,
|
||||
context.read<MyUserBloc>().state.user?.picture ?? '',
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user