Tweak bible font and avatar image layout
This commit is contained in:
@@ -60,7 +60,7 @@ class BibleVerseWidget extends StatelessWidget {
|
||||
Text(
|
||||
verse.text,
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.bodyLarge?.copyWith(
|
||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
color: Colors.white,
|
||||
height: 1.5,
|
||||
fontStyle: FontStyle.italic,
|
||||
|
||||
@@ -129,11 +129,28 @@ class TodoListWidget extends StatelessWidget {
|
||||
contentPadding: EdgeInsets.zero,
|
||||
leading: CircleAvatar(
|
||||
backgroundColor: memberColor.withOpacity(0.2),
|
||||
backgroundImage: member.iconUrl.isNotEmpty
|
||||
? NetworkImage(member.iconUrl)
|
||||
: null,
|
||||
child: member.iconUrl.isEmpty
|
||||
? (member.name.isNotEmpty
|
||||
child: member.iconUrl.isNotEmpty
|
||||
? ClipOval(
|
||||
child: Image.network(
|
||||
member.iconUrl,
|
||||
width: 40,
|
||||
height: 40,
|
||||
fit: BoxFit.cover,
|
||||
errorBuilder: (context, error, stackTrace) {
|
||||
return Text(
|
||||
member.name.isNotEmpty
|
||||
? member.name[0].toUpperCase()
|
||||
: '?',
|
||||
style: TextStyle(
|
||||
color: memberColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 20,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
)
|
||||
: (member.name.isNotEmpty
|
||||
? Text(
|
||||
member.name[0].toUpperCase(),
|
||||
style: TextStyle(
|
||||
@@ -145,8 +162,7 @@ class TodoListWidget extends StatelessWidget {
|
||||
: Icon(
|
||||
Icons.person,
|
||||
color: memberColor,
|
||||
))
|
||||
: null,
|
||||
)),
|
||||
),
|
||||
title: Text(
|
||||
todo.title,
|
||||
|
||||
Reference in New Issue
Block a user