mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-11-03 23:05:44 +00:00 
			
		
		
		
	Add FontAwesome icons
- Fill out icons on main screen - Fill out icons in app drawer
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user