2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 13:36:50 +00:00
inventree-app/lib/widget/stock_display.dart
Oliver Walters 3a686b8b7f Display for StockItem
- Empty for now
2020-04-03 12:23:57 +11:00

51 lines
1.0 KiB
Dart

import 'package:InvenTree/inventree/stock.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class StockItemDisplayWidget extends StatefulWidget {
StockItemDisplayWidget(this.item, {Key key}) : super(key: key);
final InvenTreeStockItem item;
@override
_StockItemDisplayState createState() => _StockItemDisplayState(item);
}
class _StockItemDisplayState extends State<StockItemDisplayWidget> {
_StockItemDisplayState(this.item) {
// TODO
}
final InvenTreeStockItem item;
String get _title {
if (item == null) {
return "Stock Item";
} else {
print(item.jsondata);
return "Item: x ${item.partName}";
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(_title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text("Stock Item: hello"),
],
)
)
);
}
}