|
|
|
|
@ -614,42 +614,38 @@ class Utils {
|
|
|
|
|
hasBadge: true,
|
|
|
|
|
isEnable: projectViewModel.havePrivilege(5)),
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? !projectViewModel.isLoginChild
|
|
|
|
|
? Positioned(
|
|
|
|
|
left: 8,
|
|
|
|
|
top: 4,
|
|
|
|
|
child: badge_import.Badge(
|
|
|
|
|
toAnimate: false,
|
|
|
|
|
elevation: 0,
|
|
|
|
|
position: badge_import.BadgePosition.topEnd(),
|
|
|
|
|
shape: badge_import.BadgeShape.circle,
|
|
|
|
|
badgeColor: secondaryColor.withOpacity(1.0),
|
|
|
|
|
borderRadius: BorderRadius.circular(8),
|
|
|
|
|
badgeContent: Container(
|
|
|
|
|
padding: EdgeInsets.all(2.0),
|
|
|
|
|
child: Text(count.toString(), style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 12.0)),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Container()
|
|
|
|
|
: !projectViewModel.isLoginChild
|
|
|
|
|
? Positioned(
|
|
|
|
|
right: 8,
|
|
|
|
|
top: 4,
|
|
|
|
|
child: badge_import.Badge(
|
|
|
|
|
toAnimate: false,
|
|
|
|
|
elevation: 0,
|
|
|
|
|
position: badge_import.BadgePosition.topEnd(),
|
|
|
|
|
shape: badge_import.BadgeShape.circle,
|
|
|
|
|
badgeColor: secondaryColor.withOpacity(1.0),
|
|
|
|
|
borderRadius: BorderRadius.circular(8),
|
|
|
|
|
badgeContent: Container(
|
|
|
|
|
padding: EdgeInsets.all(2.0),
|
|
|
|
|
child: Text(count.toString(), style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 12.0)),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Container(),
|
|
|
|
|
? Positioned(
|
|
|
|
|
left: 8,
|
|
|
|
|
top: 4,
|
|
|
|
|
child: badge_import.Badge(
|
|
|
|
|
toAnimate: false,
|
|
|
|
|
elevation: 0,
|
|
|
|
|
position: badge_import.BadgePosition.topEnd(),
|
|
|
|
|
shape: badge_import.BadgeShape.circle,
|
|
|
|
|
badgeColor: secondaryColor.withOpacity(1.0),
|
|
|
|
|
borderRadius: BorderRadius.circular(8),
|
|
|
|
|
badgeContent: Container(
|
|
|
|
|
padding: EdgeInsets.all(2.0),
|
|
|
|
|
child: Text(count.toString(), style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 12.0)),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Positioned(
|
|
|
|
|
right: 8,
|
|
|
|
|
top: 4,
|
|
|
|
|
child: badge_import.Badge(
|
|
|
|
|
toAnimate: false,
|
|
|
|
|
elevation: 0,
|
|
|
|
|
position: badge_import.BadgePosition.topEnd(),
|
|
|
|
|
shape: badge_import.BadgeShape.circle,
|
|
|
|
|
badgeColor: secondaryColor.withOpacity(1.0),
|
|
|
|
|
borderRadius: BorderRadius.circular(8),
|
|
|
|
|
badgeContent: Container(
|
|
|
|
|
padding: EdgeInsets.all(2.0),
|
|
|
|
|
child: Text(count.toString(), style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 12.0)),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
])
|
|
|
|
|
: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).myAppointments,
|
|
|
|
|
|