Showing
7 changed files
with
29 additions
and
5 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: [ |
234 KB
228 KB
| @@ -6,16 +6,12 @@ repository: https://github.com/juliansteenbakker/mobile_scanner | @@ -6,16 +6,12 @@ repository: https://github.com/juliansteenbakker/mobile_scanner | ||
| 6 | screenshots: | 6 | screenshots: |
| 7 | - description: 'Flutter Demo Home Page' | 7 | - description: 'Flutter Demo Home Page' |
| 8 | path: example\screenshots\homepage.png | 8 | path: example\screenshots\homepage.png |
| 9 | -- description: 'Mobile Scanner with List controller' | ||
| 10 | - path: example\screenshots\listController.png | ||
| 11 | - description: 'Mobile Scanner with controller' | 9 | - description: 'Mobile Scanner with controller' |
| 12 | path: example\screenshots\controller.png | 10 | path: example\screenshots\controller.png |
| 13 | - description: 'Mobile Scanner with scan window' | 11 | - description: 'Mobile Scanner with scan window' |
| 14 | path: example\screenshots\scanWindow.png | 12 | path: example\screenshots\scanWindow.png |
| 15 | - description: 'Mobile Scanner with controller (returning image)' | 13 | - description: 'Mobile Scanner with controller (returning image)' |
| 16 | path: example\screenshots\returningImage.png | 14 | path: example\screenshots\returningImage.png |
| 17 | -- description: 'Mobile Scanner without controller' | ||
| 18 | - path: example\screenshots\withoutController.png | ||
| 19 | - description: 'Mobile Scanner with zoom slider' | 15 | - description: 'Mobile Scanner with zoom slider' |
| 20 | path: example\screenshots\zoomSlider.png | 16 | path: example\screenshots\zoomSlider.png |
| 21 | - description: 'Mobile Scanner pageView' | 17 | - description: 'Mobile Scanner pageView' |
-
Please register or login to post a comment