2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

Update barcode / qrcode icons

This commit is contained in:
Oliver 2022-01-05 12:08:47 +11:00
parent 53319c73da
commit d296d589d9
9 changed files with 14 additions and 15 deletions

View File

@ -330,7 +330,7 @@ class APIFormField {
controller: controller,
),
trailing: IconButton(
icon: FaIcon(FontAwesomeIcons.qrcode),
icon: Icon(Icons.qr_code),
onPressed: () async {
var handler = UniqueBarcodeHandler((String hash) {
controller.text = hash;

View File

@ -50,7 +50,7 @@ class BarcodeHandler {
showSnackIcon(
L10().barcodeNoMatch,
success: false,
icon: FontAwesomeIcons.qrcode
icon: Icons.qr_code,
);
}
@ -402,7 +402,7 @@ class UniqueBarcodeHandler extends BarcodeHandler {
// If the barcode is known, we can"t assign it to the stock item!
showSnackIcon(
L10().barcodeInUse,
icon: FontAwesomeIcons.qrcode,
icon: Icons.qr_code,
success: false
);
}

View File

@ -139,7 +139,7 @@ class _InvenTreeAppSettingsState extends State<InvenTreeAppSettingsWidget> {
ListTile(
title: Text(L10().barcodeTones),
subtitle: Text(L10().soundOnBarcodeAction),
leading: FaIcon(FontAwesomeIcons.qrcode),
leading: Icon(Icons.qr_code),
trailing: Switch(
value: barcodeSounds,
onChanged: setBarcodeSounds,

View File

@ -6,7 +6,6 @@ import "package:inventree/settings/login.dart";
import "package:flutter/material.dart";
import "package:font_awesome_flutter/font_awesome_flutter.dart";
import "package:inventree/l10.dart";
import "package:inventree/widget/submit_feedback.dart";
import "package:url_launcher/url_launcher.dart";

View File

@ -82,7 +82,7 @@ class InvenTreeDrawer extends StatelessWidget {
ListTile(
title: Text(L10().scanBarcode),
onTap: _scan,
leading: FaIcon(FontAwesomeIcons.barcode),
leading: Icon(Icons.qr_code_scanner),
),
ListTile(
title: Text(L10().search),

View File

@ -205,7 +205,7 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
_iconButton(
context,
L10().scanBarcode,
FontAwesomeIcons.barcode,
Icons.qr_code_scanner,
callback: () {
_scan(context);
}

View File

@ -372,7 +372,7 @@ List<Widget> detailTiles() {
ListTile(
title: Text(L10().barcodeScanInItems),
leading: FaIcon(FontAwesomeIcons.exchangeAlt, color: COLOR_CLICK),
trailing: FaIcon(FontAwesomeIcons.qrcode),
trailing: Icon(Icons.qr_code),
onTap: () {
var _loc = location;
@ -400,7 +400,7 @@ List<Widget> detailTiles() {
ListTile(
title: Text("Move Stock Location"),
leading: FaIcon(FontAwesomeIcons.sitemap),
trailing: FaIcon(FontAwesomeIcons.qrcode),
trailing: Icon(Icons.qr_code),
)
);
*/

View File

@ -453,7 +453,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
ListTile(
title: Text(L10().barcodeScanItem),
leading: FaIcon(FontAwesomeIcons.box),
trailing: FaIcon(FontAwesomeIcons.qrcode),
trailing: Icon(Icons.qr_code),
onTap: () {
// TODO
},

View File

@ -798,7 +798,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
ListTile(
title: Text(L10().scanIntoLocation),
leading: FaIcon(FontAwesomeIcons.exchangeAlt, color: COLOR_CLICK),
trailing: FaIcon(FontAwesomeIcons.qrcode),
trailing: Icon(Icons.qr_code),
onTap: () {
Navigator.push(
context,
@ -815,8 +815,8 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
tiles.add(
ListTile(
title: Text(L10().barcodeAssign),
leading: FaIcon(FontAwesomeIcons.barcode, color: COLOR_CLICK),
trailing: FaIcon(FontAwesomeIcons.qrcode),
leading: Icon(Icons.qr_code),
trailing: Icon(Icons.qr_code_scanner),
onTap: () {
var handler = UniqueBarcodeHandler((String hash) {
@ -831,7 +831,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
showSnackIcon(
L10().barcodeAssigned,
success: true,
icon: FontAwesomeIcons.qrcode
icon: Icons.qr_code,
);
refresh();
@ -850,7 +850,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
tiles.add(
ListTile(
title: Text(L10().barcodeUnassign),
leading: FaIcon(FontAwesomeIcons.barcode, color: COLOR_CLICK),
leading: Icon(Icons.qr_code, color: COLOR_CLICK),
onTap: () {
_unassignBarcode(context);
}