Showing
1 changed file
with
2 additions
and
1 deletions
| 1 | import 'dart:async'; | 1 | import 'dart:async'; |
| 2 | 2 | ||
| 3 | +import 'package:flutter/foundation.dart'; | ||
| 3 | import 'package:flutter/material.dart'; | 4 | import 'package:flutter/material.dart'; |
| 4 | import 'package:mobile_scanner/mobile_scanner.dart'; | 5 | import 'package:mobile_scanner/mobile_scanner.dart'; |
| 5 | import 'package:mobile_scanner_example/scanned_barcode_label.dart'; | 6 | import 'package:mobile_scanner_example/scanned_barcode_label.dart'; |
| @@ -94,7 +95,7 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom> { | @@ -94,7 +95,7 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom> { | ||
| 94 | color: Colors.black.withOpacity(0.4), | 95 | color: Colors.black.withOpacity(0.4), |
| 95 | child: Column( | 96 | child: Column( |
| 96 | children: [ | 97 | children: [ |
| 97 | - _buildZoomScaleSlider(), | 98 | + if (!kIsWeb) _buildZoomScaleSlider(), |
| 98 | Row( | 99 | Row( |
| 99 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, | 100 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
| 100 | children: [ | 101 | children: [ |
-
Please register or login to post a comment