2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

Add "starred parts" to home screen

This commit is contained in:
Oliver Walters
2021-02-12 23:48:50 +11:00
parent e53170ed7e
commit ddafed1fe6
5 changed files with 130 additions and 10 deletions

View File

@ -1,4 +1,5 @@
import 'package:InvenTree/user_profile.dart';
import 'package:InvenTree/widget/starred_parts.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -224,19 +225,17 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
/*
Column(
children: <Widget>[
IconButton(
icon: new FaIcon(FontAwesomeIcons.search),
tooltip: 'Search',
tooltip: I18N.of(context).search,
onPressed: _search,
),
Text("Search"),
Text(I18N.of(context).search),
],
),
*/
Column(
children: <Widget>[
IconButton(
@ -263,6 +262,17 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
Text(I18N.of(context).parts),
],
),
Column(
children: <Widget>[
IconButton(
icon: FaIcon(FontAwesomeIcons.solidStar),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => StarredPartWidget()));
},
),
Text("Starred Parts"),
]
),
Column(
children: <Widget>[
IconButton(