chore: Follow up create group

This commit is contained in:
krille-chan 2023-11-19 14:29:04 +01:00
parent 358e66e612
commit 9c6db3de42
No known key found for this signature in database
2 changed files with 9 additions and 6 deletions

View file

@ -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,
),
), ),
), ),
), ),

View file

@ -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,