mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
push logout dialog design
This commit is contained in:
@ -104,20 +104,20 @@ class _UserDropdownMenuState extends State<UserDropdownMenu> {
|
|||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
content: SizedBox(
|
content: SizedBox(
|
||||||
height: 250,
|
height: 200,
|
||||||
width: 500,
|
width: 400,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(40),
|
padding: const EdgeInsets.only(top: 24, left: 24, right: 24),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
SvgPicture.asset(
|
Image.asset(
|
||||||
Assets.blackLogo,
|
Assets.blackLogo,
|
||||||
height: 40,
|
height: 40,
|
||||||
width: 200,
|
width: 200,
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 8.0),
|
padding: const EdgeInsets.only(top: 16),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Log out of your Syncrow account',
|
'Log out of your Syncrow account',
|
||||||
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
|
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
|
||||||
@ -127,35 +127,50 @@ class _UserDropdownMenuState extends State<UserDropdownMenu> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ListTile(
|
const SizedBox(
|
||||||
leading: SizedBox.square(
|
height: 16,
|
||||||
dimension: 80,
|
),
|
||||||
child: CircleAvatar(
|
Row(
|
||||||
backgroundColor: ColorsManager.whiteColors,
|
children: [
|
||||||
child: SizedBox.square(
|
SizedBox.square(
|
||||||
dimension: 78,
|
dimension: 80,
|
||||||
child: SvgPicture.asset(
|
child: CircleAvatar(
|
||||||
Assets.logoGrey,
|
backgroundColor: ColorsManager.whiteColors,
|
||||||
fit: BoxFit.fitHeight,
|
child: SizedBox.square(
|
||||||
height: 80,
|
dimension: 78,
|
||||||
|
child: SvgPicture.asset(
|
||||||
|
Assets.logoGrey,
|
||||||
|
fit: BoxFit.fitHeight,
|
||||||
|
height: 80,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(
|
||||||
title: Text(
|
width: 16,
|
||||||
'${widget.user?.firstName ?? ''} ${widget.user?.lastName}',
|
),
|
||||||
style: Theme.of(context).textTheme.titleMedium!.copyWith(
|
Expanded(
|
||||||
color: Colors.black,
|
child: Column(
|
||||||
fontWeight: FontWeight.bold,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
fontSize: 20,
|
children: [
|
||||||
),
|
Text(
|
||||||
),
|
'${widget.user?.firstName ?? ''} ${widget.user?.lastName}',
|
||||||
subtitle: Text(
|
style: Theme.of(context).textTheme.titleMedium!.copyWith(
|
||||||
' ${widget.user?.email}',
|
color: Colors.black,
|
||||||
style: Theme.of(context).textTheme.bodySmall!.copyWith(
|
fontWeight: FontWeight.bold,
|
||||||
color: Colors.black,
|
fontSize: 20,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Text(
|
||||||
|
' ${widget.user?.email}',
|
||||||
|
style: Theme.of(context).textTheme.bodySmall!.copyWith(
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user