projects
/
outofuni
/
tavern2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update views + reduced providers in main app
[outofuni/tavern2.git]
/
lib
/
product_service.dart
diff --git
a/lib/product_service.dart
b/lib/product_service.dart
index
0ffe964
..
218b169
100644
(file)
--- a/
lib/product_service.dart
+++ b/
lib/product_service.dart
@@
-57,7
+57,7
@@
class ProductService {
}
}
}
}
- Future<
Null> createProduct(String name,double price
,String cat) async {
+ Future<
String> createProduct(String name,double pri
,String cat) async {
try {
var url=_server+'/'+_db;
var response = await _http.post(
try {
var url=_server+'/'+_db;
var response = await _http.post(
@@
-65,7
+65,7
@@
class ProductService {
headers: {'Content-Type': 'application/json'},
body: JSON.encode({
'name': name,
headers: {'Content-Type': 'application/json'},
body: JSON.encode({
'name': name,
- 'price': pri
ce
,
+ 'price': pri,
'type': 'product',
'category': cat
})
'type': 'product',
'category': cat
})