CodingWithTashi / simple_barcode_scanner

Simple Barcode Scanner
https://pub.dev/packages/simple_barcode_scanner
MIT License
49 stars 77 forks source link

Not able to update the title #68

Closed darshil-evolution closed 1 month ago

darshil-evolution commented 1 month ago
                      sufixWidget: GestureDetector(
                        onTap: () async {
                          final result = await Get.to(
                            const SimpleBarcodeScannerPage(
                              appBarTitle: 'Mobile IMEI 1',
                              centerTitle: true,
                              isShowFlashIcon: true,
                              scanType: ScanType.barcode,
                            ),
                          );
                          if (result != null && result != '-1') {
                            print(result);
                            _imeiController.fImeiEditingController.text =
                                result;
                          }
                        },
                        child: const Image(
                          image: AssetImage(
                            AssetImageOrIcon.barcodeIcon,
                          ),
                        ),
                      ),

I am passing Mobile IMEI 1 to appBarTitle but not reflect on scanner screen.

CodingWithTashi commented 1 month ago

Hi, appBarTitle only support for web and window. I will update in mobile in coming few days.

darshil-evolution commented 1 month ago

Hi, @CodingWithTashi

Is there any way to hide app bar because it showing with irrelevant title?

CodingWithTashi commented 1 month ago

Hi @darshil-evolution, I have verify myself and title seems to be working fine. Additionally, now I have set app bar to nullable, I have release updated version https://pub.dev/packages/simple_barcode_scanner, please update it. closing the issue now, feel free to reopen with detail issue.

darshil-evolution commented 1 month ago
final result = await Get.to(
    const SimpleBarcodeScannerPage(
        isShowFlashIcon: false,
        scanType: ScanType.barcode,
        barcodeAppBar: null,
     ),
);

Hi @CodingWithTashi Still getting app-bar Please check below image. Screenshot-20241010-112429

CodingWithTashi commented 1 month ago

Hi @darshil-evolution , could you please share me your device detail including android version that you are using

CodingWithTashi commented 1 month ago

closing since there is no update