mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Move Drawer to separate file
- Now consistent drawer is accessible across all views
This commit is contained in:
parent
aa865eea1b
commit
6d3db243c3
6 changed files with 132 additions and 61 deletions
|
|
@ -4,6 +4,8 @@ import 'package:flutter/cupertino.dart';
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:InvenTree/widget/drawer.dart';
|
||||
|
||||
class PartDisplayWidget extends StatefulWidget {
|
||||
|
||||
PartDisplayWidget(this.part, {Key key}) : super(key: key);
|
||||
|
|
@ -38,6 +40,7 @@ class _PartDisplayState extends State<PartDisplayWidget> {
|
|||
appBar: AppBar(
|
||||
title: Text(_title),
|
||||
),
|
||||
drawer: new InvenTreeDrawer(context),
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue