Re-Updated: Location of icons used in qr-code-scanner screen and added the location to the pubspec

This commit is contained in:
Muhammed Ayimen 2023-11-08 22:27:14 +09:00
parent cd817f6df9
commit c0cc5f29e1
6 changed files with 5 additions and 4 deletions

View file

Before

Width:  |  Height:  |  Size: 536 B

After

Width:  |  Height:  |  Size: 536 B

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -141,11 +141,11 @@ class _QrScannerState extends State<QrScanner> {
switch (state) {
case TorchState.on:
return SvgPicture.asset(
'assets/scanner-icons/flash_on.svg',
'assets/scanner-icons/icons/flash_on.svg',
);
case TorchState.off:
return SvgPicture.asset(
'assets/scanner-icons/flash_off.svg',
'assets/scanner-icons/icons/flash_off.svg',
);
}
},
@ -157,7 +157,7 @@ class _QrScannerState extends State<QrScanner> {
// Gallery button
IconButton(
icon: SvgPicture.asset(
'assets/scanner-icons/gallery.svg',
'assets/scanner-icons/icons/gallery.svg',
),
iconSize: 60,
onPressed: () async {
@ -277,7 +277,7 @@ class _QrScannerState extends State<QrScanner> {
Navigator.pop(context);
},
child: SvgPicture.asset(
'assets/scanner-icons/cross.svg',
'assets/scanner-icons/icons/cross.svg',
colorFilter:
const ColorFilter.mode(Colors.white, BlendMode.srcATop),
height: 30,

View file

@ -102,6 +102,7 @@ flutter:
- assets/simple-icons/_data/
- assets/custom-icons/icons/
- assets/custom-icons/_data/
- assets/scanner-icons/icons/
fonts:
- family: Inter