2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 13:36:50 +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, controller: controller,
), ),
trailing: IconButton( trailing: IconButton(
icon: FaIcon(FontAwesomeIcons.qrcode), icon: Icon(Icons.qr_code),
onPressed: () async { onPressed: () async {
var handler = UniqueBarcodeHandler((String hash) { var handler = UniqueBarcodeHandler((String hash) {
controller.text = hash; controller.text = hash;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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