Julian Steenbakker
Committed by GitHub

Merge pull request #927 from Mastermind-sap/screenshots

feat: Added screenshots to pubspec.yaml
@@ -51,14 +51,42 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom> @@ -51,14 +51,42 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom>
51 color: Colors.black.withOpacity(0.4), 51 color: Colors.black.withOpacity(0.4),
52 child: Column( 52 child: Column(
53 children: [ 53 children: [
54 - Slider(  
55 - value: _zoomFactor,  
56 - onChanged: (value) {  
57 - setState(() {  
58 - _zoomFactor = value;  
59 - controller.setZoomScale(value);  
60 - });  
61 - }, 54 + Padding(
  55 + padding: const EdgeInsets.symmetric(horizontal: 8.0),
  56 + child: Row(
  57 + children: [
  58 + Text(
  59 + "0%",
  60 + overflow: TextOverflow.fade,
  61 + style: Theme.of(context)
  62 + .textTheme
  63 + .headlineMedium!
  64 + .copyWith(color: Colors.white),
  65 + ),
  66 + Expanded(
  67 + child: Slider(
  68 + max: 100,
  69 + divisions: 100,
  70 + value: _zoomFactor,
  71 + label: "${_zoomFactor.round()} %",
  72 + onChanged: (value) {
  73 + setState(() {
  74 + _zoomFactor = value;
  75 + controller.setZoomScale(value);
  76 + });
  77 + },
  78 + ),
  79 + ),
  80 + Text(
  81 + "100%",
  82 + overflow: TextOverflow.fade,
  83 + style: Theme.of(context)
  84 + .textTheme
  85 + .headlineMedium!
  86 + .copyWith(color: Colors.white),
  87 + ),
  88 + ],
  89 + ),
62 ), 90 ),
63 Row( 91 Row(
64 mainAxisAlignment: MainAxisAlignment.spaceEvenly, 92 mainAxisAlignment: MainAxisAlignment.spaceEvenly,
@@ -3,6 +3,20 @@ description: A universal barcode and QR code scanner for Flutter based on MLKit. @@ -3,6 +3,20 @@ description: A universal barcode and QR code scanner for Flutter based on MLKit.
3 version: 3.5.6 3 version: 3.5.6
4 repository: https://github.com/juliansteenbakker/mobile_scanner 4 repository: https://github.com/juliansteenbakker/mobile_scanner
5 5
  6 +screenshots:
  7 +- description: 'Flutter Demo Home Page'
  8 + path: example/screenshots/homepage.png
  9 +- description: 'Mobile Scanner with controller'
  10 + path: example/screenshots/controller.png
  11 +- description: 'Mobile Scanner with controller (returning image)'
  12 + path: example/screenshots/returningImage.png
  13 +- description: 'Mobile Scanner with zoom slider'
  14 + path: example/screenshots/zoomSlider.png
  15 +- description: 'Mobile Scanner pageView'
  16 + path: example/screenshots/pageView.gif
  17 +- description: 'Mobile Scanner with overlay'
  18 + path: example/screenshots/overlay.png
  19 +
6 environment: 20 environment:
7 sdk: ">=2.17.0 <4.0.0" 21 sdk: ">=2.17.0 <4.0.0"
8 flutter: ">=3.0.0" 22 flutter: ">=3.0.0"