fix: Padding and colors

This commit is contained in:
Christian Pauly 2021-08-22 21:50:19 +02:00
parent 6a432ae8de
commit f9111b6bb3

View File

@ -25,6 +25,7 @@ class NewPrivateChatView extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
leading: BackButton(), leading: BackButton(),
title: Text(L10n.of(context).newChat), title: Text(L10n.of(context).newChat),
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
elevation: 0, elevation: 0,
actions: [ actions: [
TextButton( TextButton(
@ -40,8 +41,10 @@ class NewPrivateChatView extends StatelessWidget {
child: ListView( child: ListView(
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.only(
horizontal: _qrCodePadding * 2, top: _qrCodePadding * 2,
left: _qrCodePadding * 2,
right: _qrCodePadding * 2,
), ),
child: Text( child: Text(
L10n.of(context).createNewChatExplaination, L10n.of(context).createNewChatExplaination,
@ -53,6 +56,7 @@ class NewPrivateChatView extends StatelessWidget {
margin: EdgeInsets.all(_qrCodePadding), margin: EdgeInsets.all(_qrCodePadding),
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.all(_qrCodePadding * 2), padding: EdgeInsets.all(_qrCodePadding * 2),
color: Colors.white,
child: Material( child: Material(
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
elevation: 4, elevation: 4,