Skip to content

AppBar parameters in SimpleBarcodeScanner.scanBarcode not applied #129

@vishnuaptreach

Description

@vishnuaptreach

I am trying to customize the AppBar of the scanner using barcodeAppBar, but the values I provide are not reflected in the UI. The scanner opens, but the AppBar title and configuration are not displayed as specified.

String? studentRes = await SimpleBarcodeScanner.scanBarcode(
  context,
  barcodeAppBar: const BarcodeAppBar(
    appBarTitle: 'Pair Scan: 1/2. Scan Student QR',
    centerTitle: true,
    enableBackButton: true,
    backButtonIcon: Icon(Icons.arrow_back_ios),
  ),
  isShowFlashIcon: true,
  scanFormat: ScanFormat.ALL_FORMATS,
);

Expected Behavior:
The scanner screen should show an AppBar with:

Title: Pair Scan: 1/2. Scan Student QR

Centered title

Back button with arrow_back_ios icon.

Actual Behavior:
The scanner opens but the AppBar does not reflect the provided configuration (title/back button settings are not shown as specified).

Environment:

Flutter version: <3.38.4>

Platform: Android / iOS

Plugin version: <0.4.0>

Additional Info:
Let me know if I am missing any configuration or if this is a known issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions