2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-07-06 13:50:41 +00:00

Add icons for settings views (#679)

This commit is contained in:
Oliver
2025-07-05 09:59:31 +10:00
committed by GitHub
parent a2e27e7a8a
commit fe30b4ee16
2 changed files with 16 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import "package:inventree/settings/release.dart";
import "package:flutter/material.dart";
import "package:flutter/services.dart";
import "package:flutter_tabler_icons/flutter_tabler_icons.dart";
import "package:inventree/widget/link_icon.dart";
import "package:package_info_plus/package_info_plus.dart";
import "package:inventree/l10.dart";
@ -182,6 +183,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
title: Text(L10().releaseNotes),
subtitle: Text(L10().appReleaseNotes),
leading: Icon(TablerIcons.file, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: () {
_releaseNotes(context);
},
@ -193,6 +195,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
title: Text(L10().credits),
subtitle: Text(L10().appCredits),
leading: Icon(TablerIcons.balloon, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: () {
_credits(context);
},
@ -204,6 +207,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
title: Text(L10().documentation),
subtitle: Text(DOCS_URL),
leading: Icon(TablerIcons.book, color: COLOR_ACTION),
trailing: LinkIcon(external: true),
onTap: () {
_openDocs();
},
@ -215,6 +219,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
title: Text(L10().translate),
subtitle: Text(L10().translateHelp),
leading: Icon(TablerIcons.language, color: COLOR_ACTION),
trailing: LinkIcon(external: true),
onTap: () {
_translate();
},
@ -226,6 +231,7 @@ class InvenTreeAboutWidget extends StatelessWidget {
title: Text(L10().reportBug),
subtitle: Text(L10().reportBugDescription),
leading: Icon(TablerIcons.bug, color: COLOR_ACTION),
trailing: LinkIcon(external: true),
onTap: () {
_reportBug(context);
},

View File

@ -14,6 +14,8 @@ import "package:inventree/settings/part_settings.dart";
import "package:inventree/settings/purchase_order_settings.dart";
import "package:inventree/settings/sales_order_settings.dart";
import "package:inventree/widget/link_icon.dart";
// InvenTree settings view
class InvenTreeSettingsWidget extends StatefulWidget {
@override
@ -50,6 +52,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
title: Text(L10().server),
subtitle: Text(L10().configureServer),
leading: Icon(TablerIcons.server, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: () {
Navigator.push(
context,
@ -64,6 +67,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
title: Text(L10().appSettings),
subtitle: Text(L10().appSettingsDetails),
leading: Icon(TablerIcons.settings, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: () {
Navigator.push(
context,
@ -77,6 +81,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
title: Text(L10().homeScreen),
subtitle: Text(L10().homeScreenSettings),
leading: Icon(TablerIcons.home, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: () {
Navigator.push(
context,
@ -90,6 +95,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
title: Text(L10().barcodes),
subtitle: Text(L10().barcodeSettings),
leading: Icon(TablerIcons.barcode, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: () {
Navigator.push(
context,
@ -103,6 +109,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
title: Text(L10().part),
subtitle: Text(L10().partSettings),
leading: Icon(TablerIcons.box, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: () {
Navigator.push(
context,
@ -116,6 +123,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
title: Text(L10().purchaseOrder),
subtitle: Text(L10().purchaseOrderSettings),
leading: Icon(TablerIcons.shopping_cart, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: () {
Navigator.push(
context,
@ -130,6 +138,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
title: Text(L10().salesOrder),
subtitle: Text(L10().salesOrderSettings),
leading: Icon(TablerIcons.truck, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: () {
Navigator.push(
context,
@ -143,6 +152,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
ListTile(
title: Text(L10().about),
leading: Icon(TablerIcons.info_circle, color: COLOR_ACTION),
trailing: LinkIcon(),
onTap: _about,
),
],