I am trying to change the color of the flutter barcode scanner:
I want to change the yellow and the gray color of the top bar.
I already tried to do something with the ScanOptions:
void barcode() async {
var options = ScanOptions(
);
var result = await BarcodeScanner.scan();
print(result.rawContent);
}
I couldn't find anything for this in the internet.
Thank you for your help!
Unfortunately this barcode scanner does not have any options for changing the color of Option menu
but if you want you can change it from android manifest: add theme in the application tag of manifest and change the color of popupMenu from theme
<application
android:name="io.flutter.app.FlutterApplication"
android:label="My App"
android:theme="@style/LaunchTheme"
android:icon="@mipmap/ic_launcher">
...