cake_wallet/lib/entities/qr_scanner.dart

13 lines
292 B
Dart
Raw Normal View History

2023-08-08 15:30:55 +00:00
import 'package:cake_wallet/routes.dart';
import 'package:flutter/widgets.dart';
2020-01-04 19:31:52 +00:00
var isQrScannerShown = false;
2023-08-08 15:30:55 +00:00
Future<String> presentQRScanner(BuildContext context) async {
try {
2023-08-08 15:30:55 +00:00
return await Navigator.pushNamed(context, Routes.scanQr) as String;
} catch (e) {
2023-08-08 15:30:55 +00:00
return "";
}
2020-01-04 19:31:52 +00:00
}