chore: Follow up fix

This commit is contained in:
Krille 2022-12-30 16:27:44 +01:00
parent fff3dc9946
commit ee3351f643

View File

@ -39,7 +39,10 @@ class NewPrivateChatView extends StatelessWidget {
) )
], ],
), ),
body: MaxWidthBody( body: Column(
children: [
Expanded(
child: MaxWidthBody(
withScrolling: true, withScrolling: true,
child: Container( child: Container(
margin: const EdgeInsets.all(_qrCodePadding), margin: const EdgeInsets.all(_qrCodePadding),
@ -71,7 +74,8 @@ class NewPrivateChatView extends StatelessWidget {
), ),
), ),
), ),
bottomNavigationBar: MaxWidthBody( ),
MaxWidthBody(
withScrolling: false, withScrolling: false,
child: Padding( child: Padding(
padding: const EdgeInsets.all(12.0), padding: const EdgeInsets.all(12.0),
@ -102,12 +106,17 @@ class NewPrivateChatView extends StatelessWidget {
), ),
), ),
), ),
],
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat, floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
floatingActionButton: PlatformInfos.isMobile && !controller.hideFab floatingActionButton: PlatformInfos.isMobile && !controller.hideFab
? FloatingActionButton.extended( ? Padding(
padding: const EdgeInsets.only(bottom: 64.0),
child: FloatingActionButton.extended(
onPressed: controller.openScannerAction, onPressed: controller.openScannerAction,
label: Text(L10n.of(context)!.scanQrCode), label: Text(L10n.of(context)!.scanQrCode),
icon: const Icon(Icons.camera_alt_outlined), icon: const Icon(Icons.camera_alt_outlined),
),
) )
: null, : null,
); );