Skip to content

Commit

Permalink
🐛 Fix not returned when no scan result.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 20, 2020
1 parent 20a6874 commit d011d1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pages/home/scan_qrcode_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class _ScanQrCodePageState extends State<ScanQrCodePage> {
Future<void> onScan(BuildContext context, String data) async {
if (data == null) {
showCenterErrorToast('没有识别到二维码~换一张试试');
return;
}
if (API.urlReg.stringMatch(data) != null) {
Navigator.of(context).pop();
Expand Down Expand Up @@ -49,7 +50,7 @@ class _ScanQrCodePageState extends State<ScanQrCodePage> {
return Scaffold(
body: Column(
children: <Widget>[
FixedAppBar(title: Text('扫描二维码')),
const FixedAppBar(title: Text('扫描二维码')),
Expanded(
child: QrcodeReaderView(
key: _key,
Expand Down

0 comments on commit d011d1a

Please sign in to comment.