Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
IT Project 2020
Group B
pilar-mobile
Commits
be518835
Commit
be518835
authored
Nov 24, 2020
by
Tsamara Esperanti Erwin
🦄
Browse files
Pbi 7 progress program
parent
8ec962cd
Changes
5
Hide whitespace changes
Inline
Side-by-side
lib/Pages/Donation/bloc_goods_donation/goods_donation_bloc.dart
View file @
be518835
...
...
@@ -20,7 +20,6 @@ class GoodsDonationBloc extends Bloc<GoodsDonationEvent, GoodsDonationState> {
Stream
<
GoodsDonationState
>
mapEventToState
(
GoodsDonationEvent
event
)
async
*
{
if
(
event
is
GoodsDonationButtonClicked
)
{
yield
const
SendingGoodsDonationLoading
();
print
(
event
.
isFinal
);
try
{
await
_donationRepository
.
createGoodsDonation
(
event
.
program
,
...
...
lib/Pages/DonationHistory/model/donation.g.dart
View file @
be518835
...
...
@@ -70,7 +70,7 @@ Map<String, dynamic> _$DonationToJson(Donation instance) => <String, dynamic>{
'goods_quantity'
:
instance
.
goodsQuantity
,
'goods_description'
:
instance
.
goodsDescription
,
'delivery_method'
:
instance
.
deliveryMethod
,
'delivery_address'
:
instance
.
deliveryAddress
'delivery_address'
:
instance
.
deliveryAddress
,
};
const
_$StatusDonationEnumMap
=
{
...
...
lib/Pages/Program/bloc_program/program_event.dart
View file @
be518835
...
...
@@ -17,3 +17,10 @@ class FetchProgramByStatus extends ProgramEvent {
@override
List
<
Object
>
get
props
=
>
[];
}
class
FetchProgramByStatus
extends
ProgramEvent
{
const
FetchProgramByStatus
();
@override
List
<
Object
>
get
props
=
>
[];
}
lib/Pages/Transactions/model/transaction_entity.dart
View file @
be518835
...
...
@@ -49,8 +49,12 @@ class Transaction {
final
DateTime
updatedAt
;
final
String
subtotal
;
final
List
<
TransactionItem
>
transactionItems
;
@JsonKey
(
nullable:
true
)
final
String
batch
;
@JsonKey
(
nullable:
true
)
final
String
batchName
;
@JsonKey
(
nullable:
true
)
final
DateTime
batchEndDate
;
const
Transaction
(
...
...
lib/Pages/Transactions/model/transaction_entity.g.dart
View file @
be518835
...
...
@@ -46,7 +46,7 @@ Transaction _$TransactionFromJson(Map<String, dynamic> json) {
subtotal:
json
[
'subtotal'
]
as
String
,
batch:
json
[
'batch'
]
as
String
,
batchName:
json
[
'batch_name'
]
as
String
,
batchEndDate:
DateTime
.
parse
(
json
[
'end_date'
]
as
String
)
batchEndDate:
json
[
'end_date'
]
!=
null
?
DateTime
.
parse
(
json
[
'end_date'
]
as
String
)
:
DateTime
.
now
(),
);
}
...
...
@@ -87,8 +87,8 @@ Map<String, dynamic> _$TransactionToJson(Transaction instance) =>
'transaction_items'
:
instance
.
transactionItems
.
map
((
e
)
=
>
e
.
toJson
())
.
toList
(),
'batch'
:
instance
.
batch
,
'batch_name'
:
instance
.
batchName
,
'end_date'
:
instance
.
batchEndDate
'batch_name'
:
instance
.
batchName
,
'end_date'
:
instance
.
batchEndDate
.
toIso8601String
(),
};
const
_$PaymentMethodEnumMap
=
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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