mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-11-04 07:15:46 +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:flutter/material.dart';
 | 
				
			||||||
import 'package:shared_preferences/shared_preferences.dart';
 | 
					import 'package:shared_preferences/shared_preferences.dart';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import 'package:font_awesome_flutter/font_awesome_flutter.dart';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import 'barcode.dart';
 | 
					import 'barcode.dart';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import 'dart:convert';
 | 
					import 'dart:convert';
 | 
				
			||||||
@@ -217,7 +219,7 @@ class _MyHomePageState extends State<MyHomePage> {
 | 
				
			|||||||
                Column(
 | 
					                Column(
 | 
				
			||||||
                  children: <Widget>[
 | 
					                  children: <Widget>[
 | 
				
			||||||
                   IconButton(
 | 
					                   IconButton(
 | 
				
			||||||
                     icon: new Icon(Icons.search),
 | 
					                     icon: new FaIcon(FontAwesomeIcons.search),
 | 
				
			||||||
                     tooltip: 'Search',
 | 
					                     tooltip: 'Search',
 | 
				
			||||||
                     onPressed: _search,
 | 
					                     onPressed: _search,
 | 
				
			||||||
                   ),
 | 
					                   ),
 | 
				
			||||||
@@ -227,7 +229,7 @@ class _MyHomePageState extends State<MyHomePage> {
 | 
				
			|||||||
                Column(
 | 
					                Column(
 | 
				
			||||||
                  children: <Widget>[
 | 
					                  children: <Widget>[
 | 
				
			||||||
                    IconButton(
 | 
					                    IconButton(
 | 
				
			||||||
                      icon: new Icon(Icons.search),
 | 
					                      icon: new FaIcon(FontAwesomeIcons.barcode),
 | 
				
			||||||
                      tooltip: 'Scan Barcode',
 | 
					                      tooltip: 'Scan Barcode',
 | 
				
			||||||
                      onPressed: _scan,
 | 
					                      onPressed: _scan,
 | 
				
			||||||
                    ),
 | 
					                    ),
 | 
				
			||||||
@@ -253,7 +255,7 @@ class _MyHomePageState extends State<MyHomePage> {
 | 
				
			|||||||
                Column(
 | 
					                Column(
 | 
				
			||||||
                  children: <Widget>[
 | 
					                  children: <Widget>[
 | 
				
			||||||
                    IconButton(
 | 
					                    IconButton(
 | 
				
			||||||
                      icon: new Icon(Icons.map),
 | 
					                      icon: new FaIcon(FontAwesomeIcons.boxes),
 | 
				
			||||||
                      tooltip: 'Stock',
 | 
					                      tooltip: 'Stock',
 | 
				
			||||||
                      onPressed: _stock,
 | 
					                      onPressed: _stock,
 | 
				
			||||||
                    ),
 | 
					                    ),
 | 
				
			||||||
@@ -263,7 +265,7 @@ class _MyHomePageState extends State<MyHomePage> {
 | 
				
			|||||||
                Column(
 | 
					                Column(
 | 
				
			||||||
                  children: <Widget>[
 | 
					                  children: <Widget>[
 | 
				
			||||||
                    IconButton(
 | 
					                    IconButton(
 | 
				
			||||||
                      icon: new Icon(Icons.business),
 | 
					                      icon: new FaIcon(FontAwesomeIcons.industry),
 | 
				
			||||||
                      tooltip: 'Suppliers',
 | 
					                      tooltip: 'Suppliers',
 | 
				
			||||||
                      onPressed: _suppliers,
 | 
					                      onPressed: _suppliers,
 | 
				
			||||||
                    ),
 | 
					                    ),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,6 +5,7 @@ import 'package:InvenTree/widget/category_display.dart';
 | 
				
			|||||||
import 'package:InvenTree/widget/location_display.dart';
 | 
					import 'package:InvenTree/widget/location_display.dart';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import 'package:InvenTree/settings.dart';
 | 
					import 'package:InvenTree/settings.dart';
 | 
				
			||||||
 | 
					import 'package:font_awesome_flutter/font_awesome_flutter.dart';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class InvenTreeDrawer extends StatelessWidget {
 | 
					class InvenTreeDrawer extends StatelessWidget {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -78,13 +79,13 @@ class InvenTreeDrawer extends StatelessWidget {
 | 
				
			|||||||
              new Divider(),
 | 
					              new Divider(),
 | 
				
			||||||
              new ListTile(
 | 
					              new ListTile(
 | 
				
			||||||
                title: new Text("Search"),
 | 
					                title: new Text("Search"),
 | 
				
			||||||
                leading: new Icon(Icons.search),
 | 
					                leading: new FaIcon(FontAwesomeIcons.search),
 | 
				
			||||||
                onTap: null,
 | 
					                onTap: null,
 | 
				
			||||||
              ),
 | 
					              ),
 | 
				
			||||||
              new ListTile(
 | 
					              new ListTile(
 | 
				
			||||||
                title: new Text("Scan"),
 | 
					                title: new Text("Scan Barcode"),
 | 
				
			||||||
                onTap: _scan,
 | 
					                onTap: _scan,
 | 
				
			||||||
                leading: new Icon(Icons.search),
 | 
					                leading: new FaIcon(FontAwesomeIcons.barcode),
 | 
				
			||||||
              ),
 | 
					              ),
 | 
				
			||||||
              new Divider(),
 | 
					              new Divider(),
 | 
				
			||||||
              new ListTile(
 | 
					              new ListTile(
 | 
				
			||||||
@@ -94,11 +95,12 @@ class InvenTreeDrawer extends StatelessWidget {
 | 
				
			|||||||
              ),
 | 
					              ),
 | 
				
			||||||
              new ListTile(
 | 
					              new ListTile(
 | 
				
			||||||
                title: new Text("Stock"),
 | 
					                title: new Text("Stock"),
 | 
				
			||||||
 | 
					                leading: new FaIcon(FontAwesomeIcons.boxes),
 | 
				
			||||||
                onTap: _showStock,
 | 
					                onTap: _showStock,
 | 
				
			||||||
              ),
 | 
					              ),
 | 
				
			||||||
              new ListTile(
 | 
					              new ListTile(
 | 
				
			||||||
                title: new Text("Suppliers"),
 | 
					                title: new Text("Suppliers"),
 | 
				
			||||||
                leading: new Icon(Icons.business),
 | 
					                leading: new FaIcon(FontAwesomeIcons.industry),
 | 
				
			||||||
                onTap: null,
 | 
					                onTap: null,
 | 
				
			||||||
              ),
 | 
					              ),
 | 
				
			||||||
              new Divider(),
 | 
					              new Divider(),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -100,6 +100,13 @@ packages:
 | 
				
			|||||||
    description: flutter
 | 
					    description: flutter
 | 
				
			||||||
    source: sdk
 | 
					    source: sdk
 | 
				
			||||||
    version: "0.0.0"
 | 
					    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:
 | 
					  http:
 | 
				
			||||||
    dependency: "direct main"
 | 
					    dependency: "direct main"
 | 
				
			||||||
    description:
 | 
					    description:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,6 +34,8 @@ dependencies:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  package_info: ^0.4.0+16
 | 
					  package_info: ^0.4.0+16
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  font_awesome_flutter: ^8.8.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dev_dependencies:
 | 
					dev_dependencies:
 | 
				
			||||||
  flutter_test:
 | 
					  flutter_test:
 | 
				
			||||||
    sdk: flutter
 | 
					    sdk: flutter
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user