Committed by
GitHub
Merge pull request #927 from Mastermind-sap/screenshots
feat: Added screenshots to pubspec.yaml
Showing
8 changed files
with
43 additions
and
1 deletions
| @@ -51,8 +51,24 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom> | @@ -51,8 +51,24 @@ 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( | 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, | ||
| 55 | value: _zoomFactor, | 70 | value: _zoomFactor, |
| 71 | + label: "${_zoomFactor.round()} %", | ||
| 56 | onChanged: (value) { | 72 | onChanged: (value) { |
| 57 | setState(() { | 73 | setState(() { |
| 58 | _zoomFactor = value; | 74 | _zoomFactor = value; |
| @@ -60,6 +76,18 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom> | @@ -60,6 +76,18 @@ class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom> | ||
| 60 | }); | 76 | }); |
| 61 | }, | 77 | }, |
| 62 | ), | 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 | + ), | ||
| 90 | + ), | ||
| 63 | Row( | 91 | Row( |
| 64 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, | 92 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
| 65 | children: [ | 93 | children: [ |
example/screenshots/controller.png
0 → 100644
1.21 MB
example/screenshots/homepage.png
0 → 100644
145 KB
example/screenshots/overlay.png
0 → 100644
1.02 MB
example/screenshots/pageView.gif
0 → 100644
981 KB
example/screenshots/returningImage.png
0 → 100644
836 KB
example/screenshots/zoomSlider.png
0 → 100644
1.21 MB
| @@ -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" |
-
Please register or login to post a comment