h-1 lebaran

This commit is contained in:
Khafidh Fuadi
2025-03-30 14:45:16 +07:00
parent c008020705
commit 5aaeb58d2b
91 changed files with 9448 additions and 3756 deletions

View File

@ -38,14 +38,20 @@ class AppDrawer extends StatelessWidget {
children: [
CircleAvatar(
radius: 30,
backgroundColor: Colors.white,
backgroundImage:
avatar != null ? NetworkImage(avatar!) : null,
child: avatar == null
? const Icon(
Icons.person,
size: 40,
color: AppTheme.primaryColor,
backgroundColor: AppTheme.primaryColor.withOpacity(0.2),
backgroundImage: avatar != null && avatar!.isNotEmpty
? NetworkImage(avatar!)
: null,
child: (avatar == null || avatar!.isEmpty)
? Text(
nama.isNotEmpty
? nama.substring(0, 1).toUpperCase()
: '?',
style: const TextStyle(
fontWeight: FontWeight.bold,
color: AppTheme.primaryColor,
fontSize: 24,
),
)
: null,
),