mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Add FontAwesome icons
- Fill out icons on main screen - Fill out icons in app drawer
This commit is contained in:
parent
317a6f737e
commit
d38ff5ad7f
@ -8,6 +8,8 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
|
||||
import 'barcode.dart';
|
||||
|
||||
import 'dart:convert';
|
||||
@ -217,7 +219,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
Column(
|
||||
children: <Widget>[
|
||||
IconButton(
|
||||
icon: new Icon(Icons.search),
|
||||
icon: new FaIcon(FontAwesomeIcons.search),
|
||||
tooltip: 'Search',
|
||||
onPressed: _search,
|
||||
),
|
||||
@ -227,7 +229,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
Column(
|
||||
children: <Widget>[
|
||||
IconButton(
|
||||
icon: new Icon(Icons.search),
|
||||
icon: new FaIcon(FontAwesomeIcons.barcode),
|
||||
tooltip: 'Scan Barcode',
|
||||
onPressed: _scan,
|
||||
),
|
||||
@ -253,7 +255,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
Column(
|
||||
children: <Widget>[
|
||||
IconButton(
|
||||
icon: new Icon(Icons.map),
|
||||
icon: new FaIcon(FontAwesomeIcons.boxes),
|
||||
tooltip: 'Stock',
|
||||
onPressed: _stock,
|
||||
),
|
||||
@ -263,7 +265,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
Column(
|
||||
children: <Widget>[
|
||||
IconButton(
|
||||
icon: new Icon(Icons.business),
|
||||
icon: new FaIcon(FontAwesomeIcons.industry),
|
||||
tooltip: 'Suppliers',
|
||||
onPressed: _suppliers,
|
||||
),
|
||||
|
@ -5,6 +5,7 @@ import 'package:InvenTree/widget/category_display.dart';
|
||||
import 'package:InvenTree/widget/location_display.dart';
|
||||
|
||||
import 'package:InvenTree/settings.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
|
||||
class InvenTreeDrawer extends StatelessWidget {
|
||||
|
||||
@ -78,13 +79,13 @@ class InvenTreeDrawer extends StatelessWidget {
|
||||
new Divider(),
|
||||
new ListTile(
|
||||
title: new Text("Search"),
|
||||
leading: new Icon(Icons.search),
|
||||
leading: new FaIcon(FontAwesomeIcons.search),
|
||||
onTap: null,
|
||||
),
|
||||
new ListTile(
|
||||
title: new Text("Scan"),
|
||||
title: new Text("Scan Barcode"),
|
||||
onTap: _scan,
|
||||
leading: new Icon(Icons.search),
|
||||
leading: new FaIcon(FontAwesomeIcons.barcode),
|
||||
),
|
||||
new Divider(),
|
||||
new ListTile(
|
||||
@ -94,11 +95,12 @@ class InvenTreeDrawer extends StatelessWidget {
|
||||
),
|
||||
new ListTile(
|
||||
title: new Text("Stock"),
|
||||
leading: new FaIcon(FontAwesomeIcons.boxes),
|
||||
onTap: _showStock,
|
||||
),
|
||||
new ListTile(
|
||||
title: new Text("Suppliers"),
|
||||
leading: new Icon(Icons.business),
|
||||
leading: new FaIcon(FontAwesomeIcons.industry),
|
||||
onTap: null,
|
||||
),
|
||||
new Divider(),
|
||||
|
@ -100,6 +100,13 @@ packages:
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
font_awesome_flutter:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: font_awesome_flutter
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "8.8.1"
|
||||
http:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -34,6 +34,8 @@ dependencies:
|
||||
|
||||
package_info: ^0.4.0+16
|
||||
|
||||
font_awesome_flutter: ^8.8.1
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
Loading…
x
Reference in New Issue
Block a user