Re-Updated: Location of icons used in qr-code-scanner screen and added the location to the pubspec
Before Width: | Height: | Size: 536 B After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
@ -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,
|
||||
|
|
|
@ -102,6 +102,7 @@ flutter:
|
|||
- assets/simple-icons/_data/
|
||||
- assets/custom-icons/icons/
|
||||
- assets/custom-icons/_data/
|
||||
- assets/scanner-icons/icons/
|
||||
|
||||
fonts:
|
||||
- family: Inter
|
||||
|
|