chore: Follow up fix

This commit is contained in:
Krille 2022-12-30 16:27:44 +01:00
parent 6fc8aaa1bb
commit 49b541930a

View file

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