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>
color: Colors.black.withOpacity(0.4),
child: Column(
children: [
Slider(
value: _zoomFactor,
onChanged: (value) {
setState(() {
_zoomFactor = value;
controller.setZoomScale(value);
});
},
Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Row(
children: [
Text(
"0%",
overflow: TextOverflow.fade,
style: Theme.of(context)
.textTheme
.headlineMedium!
.copyWith(color: Colors.white),
),
Expanded(
child: Slider(
max: 100,
divisions: 100,
value: _zoomFactor,
label: "${_zoomFactor.round()} %",
onChanged: (value) {
setState(() {
_zoomFactor = value;
controller.setZoomScale(value);
});
},
),
),
Text(
"100%",
overflow: TextOverflow.fade,
style: Theme.of(context)
.textTheme
.headlineMedium!
.copyWith(color: Colors.white),
),
],
),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
... ...
... ... @@ -3,6 +3,20 @@ description: A universal barcode and QR code scanner for Flutter based on MLKit.
version: 3.5.6
repository: https://github.com/juliansteenbakker/mobile_scanner
screenshots:
- description: 'Flutter Demo Home Page'
path: example/screenshots/homepage.png
- description: 'Mobile Scanner with controller'
path: example/screenshots/controller.png
- description: 'Mobile Scanner with controller (returning image)'
path: example/screenshots/returningImage.png
- description: 'Mobile Scanner with zoom slider'
path: example/screenshots/zoomSlider.png
- description: 'Mobile Scanner pageView'
path: example/screenshots/pageView.gif
- description: 'Mobile Scanner with overlay'
path: example/screenshots/overlay.png
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
... ...