chore: Minor design improvements
This commit is contained in:
parent
78664e8dbd
commit
c4c594adf1
7 changed files with 25 additions and 13 deletions
|
|
@ -19,7 +19,7 @@ class ContentBanner extends StatelessWidget {
|
|||
const ContentBanner(
|
||||
{this.mxContent,
|
||||
this.height = 400,
|
||||
this.defaultIcon = Icons.people_outlined,
|
||||
this.defaultIcon = Icons.account_circle_outlined,
|
||||
this.loading = false,
|
||||
this.onEdit,
|
||||
this.client,
|
||||
|
|
@ -34,7 +34,7 @@ class ContentBanner extends StatelessWidget {
|
|||
height: height,
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).secondaryHeaderColor,
|
||||
color: Theme.of(context).colorScheme.secondaryContainer,
|
||||
),
|
||||
child: Stack(
|
||||
children: <Widget>[
|
||||
|
|
@ -66,10 +66,20 @@ class ContentBanner extends StatelessWidget {
|
|||
imageUrl: src.toString(),
|
||||
height: 300,
|
||||
fit: BoxFit.cover,
|
||||
errorWidget: (c, m, e) => Icon(defaultIcon, size: 200),
|
||||
errorWidget: (c, m, e) => Icon(
|
||||
defaultIcon,
|
||||
size: 200,
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSecondaryContainer,
|
||||
),
|
||||
);
|
||||
})
|
||||
: Icon(defaultIcon, size: 200),
|
||||
: Icon(
|
||||
defaultIcon,
|
||||
size: 200,
|
||||
color: Theme.of(context).colorScheme.onSecondaryContainer,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (onEdit != null)
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class ProfileBottomSheet extends StatelessWidget {
|
|||
)
|
||||
: ContentBanner(
|
||||
mxContent: profile.avatarUrl,
|
||||
defaultIcon: Icons.person_outline,
|
||||
defaultIcon: Icons.account_circle_outlined,
|
||||
client: Matrix.of(context).client,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ class PublicRoomBottomSheet extends StatelessWidget {
|
|||
ContentBanner(
|
||||
mxContent: profile.avatarUrl,
|
||||
height: 156,
|
||||
defaultIcon: Icons.person_outline,
|
||||
defaultIcon: Icons.group_outlined,
|
||||
client: Matrix.of(context).client,
|
||||
),
|
||||
ListTile(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue