UI fixes + Scan fix

This commit is contained in:
Muhammad Hamza
2021-10-19 10:19:41 +05:00
parent 504e0af11a
commit 7790eea069
2 changed files with 2 additions and 9 deletions
@@ -176,15 +176,7 @@ class _AddContactViewState extends State<AddContactView> {
result = scanData;
await controller.pauseCamera();
if (result != null) {
await Navigator.push(
context,
MaterialPageRoute(
builder: (_) => QRCodeDetailsView(
barcode: result!,
),
),
);
await controller.resumeCamera();
Navigator.of(context).pop(true);
}
});
});
@@ -30,6 +30,7 @@ class ScanInvitationView extends StatelessWidget {
onTap: () => _showConnection(context),
child: Image.asset(
'assets/code.png',
height: _size.height * 0.3
),
),
SizedBox(height: _size.height * 0.04),