Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Apus Drones
apus-drones-frontend
Commits
7ba83d22
Commit
7ba83d22
authored
3 years ago
by
Calebe Rocha
Browse files
Options
Download
Email Patches
Plain Diff
Não é mais necessário informar um id de partner para criar um produto
parent
64ef47ea
develop
feat/US04-Tela-editar-perfil
feat/US08-detalhes-pedido-piloto
feat/US11-ajustar-endereço
feat/US24-selecao-imagem-principal
feat/US30-Datalhes-Parceiro
feat/apk_settings
feat/login-ao-cadastrar-cliente
feat/pilot_screens
feat/us03-endereco
feat/us17-finalizar-compra
feat/us8-status-order-filter
fix/US19-scroll-mapa
fix/US30-tratar-erros
fix/adicionar-ao-carrinho-nao-funciona
fix/admin_sair
fix/antes-apresentacao-sprint4
fix/carrinho_vazio
fix/feedback-visual
fix/final_fixes
fix/remove-partner-createproductmodel
fix/tratamento-erros-http
issue/US04-editar-endereco
master
test/flutter-unit-tests
v1.0
v0.5
v0.4
2 merge requests
!40
Sprint 4
,
!38
Não é mais necessário informar um id de partner para criar um produto
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/models/CreateProductModel.dart
+0
-2
lib/models/CreateProductModel.dart
lib/models/CreateProductModel.g.dart
+0
-2
lib/models/CreateProductModel.g.dart
lib/screens/EditProductScreen.dart
+0
-1
lib/screens/EditProductScreen.dart
with
0 additions
and
5 deletions
+0
-5
lib/models/CreateProductModel.dart
View file @
7ba83d22
...
...
@@ -12,7 +12,6 @@ class CreateProductModel {
final
double
weight
;
final
DateTime
createdAt
;
final
int
quantity
;
final
int
?
partner
;
final
List
<
PictureToUploadModel
>
files
;
final
List
<
String
>
imagesUrls
;
...
...
@@ -24,7 +23,6 @@ class CreateProductModel {
required
this
.
weight
,
required
this
.
createdAt
,
required
this
.
quantity
,
this
.
partner
,
required
this
.
files
,
required
this
.
imagesUrls
,
});
...
...
This diff is collapsed.
Click to expand it.
lib/models/CreateProductModel.g.dart
View file @
7ba83d22
...
...
@@ -15,7 +15,6 @@ CreateProductModel _$CreateProductModelFromJson(Map<String, dynamic> json) {
weight:
(
json
[
'weight'
]
as
num
).
toDouble
(),
createdAt:
DateTime
.
parse
(
json
[
'createdAt'
]
as
String
),
quantity:
json
[
'quantity'
]
as
int
,
partner:
json
[
'partner'
]
as
int
?,
files:
(
json
[
'files'
]
as
List
<
dynamic
>)
.
map
((
e
)
=>
PictureToUploadModel
.
fromJson
(
e
as
Map
<
String
,
dynamic
>))
.
toList
(),
...
...
@@ -33,7 +32,6 @@ Map<String, dynamic> _$CreateProductModelToJson(CreateProductModel instance) =>
'weight'
:
instance
.
weight
,
'createdAt'
:
instance
.
createdAt
.
toIso8601String
(),
'quantity'
:
instance
.
quantity
,
'partner'
:
instance
.
partner
,
'files'
:
instance
.
files
,
'imagesUrls'
:
instance
.
imagesUrls
,
};
This diff is collapsed.
Click to expand it.
lib/screens/EditProductScreen.dart
View file @
7ba83d22
...
...
@@ -110,7 +110,6 @@ class _EditProductScreenState extends State<EditProductScreen> {
createdAt:
DateTime
.
now
(),
quantity:
quantity
,
files:
files
,
partner:
3
,
imagesUrls:
[],
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help