chore: Adjust new chat page design

pull/1850/head
krille-chan 5 months ago
parent a1b198bfbc
commit 9a5bb2a0db
No known key found for this signature in database

@ -124,7 +124,7 @@ class NewPrivateChatView extends StatelessWidget {
), ),
style: TextStyle( style: TextStyle(
color: theme.colorScheme.onSurface, color: theme.colorScheme.onSurface,
fontSize: 13, fontSize: 12,
), ),
), ),
), ),
@ -164,9 +164,15 @@ class NewPrivateChatView extends StatelessWidget {
vertical: 24.0, vertical: 24.0,
), ),
child: Material( child: Material(
shape: RoundedRectangleBorder(
borderRadius: borderRadius:
BorderRadius.circular(AppConfig.borderRadius), BorderRadius.circular(AppConfig.borderRadius),
color: theme.colorScheme.primaryContainer, side: BorderSide(
width: 3,
color: theme.colorScheme.primary,
),
),
color: Colors.transparent,
clipBehavior: Clip.hardEdge, clipBehavior: Clip.hardEdge,
child: InkWell( child: InkWell(
borderRadius: borderRadius:
@ -176,17 +182,16 @@ class NewPrivateChatView extends StatelessWidget {
userId, userId,
), ),
child: Padding( child: Padding(
padding: const EdgeInsets.all(32.0), padding: const EdgeInsets.all(16.0),
child: ConstrainedBox( child: ConstrainedBox(
constraints: constraints:
const BoxConstraints(maxWidth: 256), const BoxConstraints(maxWidth: 200),
child: PrettyQrView.data( child: PrettyQrView.data(
data: 'https://matrix.to/#/$userId', data: 'https://matrix.to/#/$userId',
decoration: PrettyQrDecoration( decoration: PrettyQrDecoration(
shape: PrettyQrSmoothSymbol( shape: PrettyQrSmoothSymbol(
roundFactor: 1, roundFactor: 1,
color: color: theme.colorScheme.primary,
theme.colorScheme.onPrimaryContainer,
), ),
), ),
), ),

Loading…
Cancel
Save