Flutter barcode_scan 变色
Flutter barcode_scan change color
我正在尝试改变颤动的颜色barcode scanner:
我想更改顶栏的黄色和灰色。
我已经尝试使用 ScanOptions 做一些事情:
void barcode() async {
var options = ScanOptions(
);
var result = await BarcodeScanner.scan();
print(result.rawContent);
}
我在互联网上找不到任何相关内容。
感谢您的帮助!
遗憾的是这个barcode scanner没有任何改变选项菜单颜色的选项
但如果您愿意,可以从 android 清单中更改它:
在 manifest 的 application 标签中添加 theme 并从 theme
更改 popupMenu 的颜色
<application
android:name="io.flutter.app.FlutterApplication"
android:label="My App"
android:theme="@style/LaunchTheme"
android:icon="@mipmap/ic_launcher">
...
我正在尝试改变颤动的颜色barcode scanner:
我想更改顶栏的黄色和灰色。
我已经尝试使用 ScanOptions 做一些事情:
void barcode() async {
var options = ScanOptions(
);
var result = await BarcodeScanner.scan();
print(result.rawContent);
}
我在互联网上找不到任何相关内容。
感谢您的帮助!
遗憾的是这个barcode scanner没有任何改变选项菜单颜色的选项
但如果您愿意,可以从 android 清单中更改它: 在 manifest 的 application 标签中添加 theme 并从 theme
更改 popupMenu 的颜色 <application
android:name="io.flutter.app.FlutterApplication"
android:label="My App"
android:theme="@style/LaunchTheme"
android:icon="@mipmap/ic_launcher">
...