chore: Follow up create group
This commit is contained in:
parent
358e66e612
commit
9c6db3de42
2 changed files with 9 additions and 6 deletions
|
|
@ -42,11 +42,14 @@ class NewGroupView extends StatelessWidget {
|
||||||
radius: Avatar.defaultSize / 2,
|
radius: Avatar.defaultSize / 2,
|
||||||
child: avatar == null
|
child: avatar == null
|
||||||
? const Icon(Icons.camera_alt_outlined)
|
? const Icon(Icons.camera_alt_outlined)
|
||||||
: Image.memory(
|
: ClipRRect(
|
||||||
avatar,
|
borderRadius: BorderRadius.circular(90),
|
||||||
width: Avatar.defaultSize,
|
child: Image.memory(
|
||||||
height: Avatar.defaultSize,
|
avatar,
|
||||||
fit: BoxFit.cover,
|
width: Avatar.defaultSize,
|
||||||
|
height: Avatar.defaultSize,
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class NewPrivateChatView extends StatelessWidget {
|
||||||
min(MediaQuery.of(context).size.width - 16, 256).toDouble();
|
min(MediaQuery.of(context).size.width - 16, 256).toDouble();
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
scrolledUnderElevation: Theme.of(context).appBarTheme.elevation,
|
scrolledUnderElevation: 0,
|
||||||
leading: const Center(child: BackButton()),
|
leading: const Center(child: BackButton()),
|
||||||
title: Text(L10n.of(context)!.newChat),
|
title: Text(L10n.of(context)!.newChat),
|
||||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue