step 19 : fix check svg from server
This commit is contained in:
@@ -714,23 +714,188 @@ class HistoryTransaksiScreen extends HookConsumerWidget {
|
||||
// ),
|
||||
// ),
|
||||
|
||||
Card(
|
||||
elevation: 2.0,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
// atas
|
||||
HistoryRowAtasWidget(),
|
||||
(searchHistoryIsLoading.value)
|
||||
? Center(
|
||||
child: CircularProgressIndicator(),
|
||||
)
|
||||
: Expanded(
|
||||
child: ListView.builder(
|
||||
itemCount: listSearchHistory.value.length,
|
||||
itemBuilder: (context, idx) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(
|
||||
bottom: Constant.getActualYPhone(
|
||||
context: context,
|
||||
y: 10,
|
||||
),
|
||||
),
|
||||
child: Card(
|
||||
elevation: 2.0,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(10),
|
||||
child: Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
// atas
|
||||
HistoryRowAtasWidget(
|
||||
icon_category_id: listSearchHistory
|
||||
.value[idx].kategoriid
|
||||
.toString(),
|
||||
icon_category_name: listSearchHistory
|
||||
.value[idx].kategoriname
|
||||
.toString(),
|
||||
amount: listSearchHistory
|
||||
.value[idx].amount
|
||||
.toString(),
|
||||
tglTransaksi: listSearchHistory
|
||||
.value[idx].tanggaltransaksi
|
||||
.toString(),
|
||||
tipe: listSearchHistory
|
||||
.value[idx].tipe
|
||||
.toString(),
|
||||
),
|
||||
|
||||
// bawah
|
||||
Row(),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
// bawah
|
||||
|
||||
if (listSearchHistory
|
||||
.value[idx].isconfirm ==
|
||||
"Y")
|
||||
Row(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.end,
|
||||
children: [
|
||||
Chip(
|
||||
label: Text(
|
||||
'Confirmed',
|
||||
style: TextStyle(
|
||||
color: Constant.textWhite,
|
||||
),
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
side: BorderSide(
|
||||
color:
|
||||
Constant.bgChipConfirmed),
|
||||
borderRadius:
|
||||
BorderRadius.circular(
|
||||
50,
|
||||
),
|
||||
),
|
||||
backgroundColor:
|
||||
Constant.bgChipConfirmed,
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(
|
||||
height: Constant.getActualYPhone(
|
||||
context: context, y: 6),
|
||||
),
|
||||
|
||||
if (listSearchHistory
|
||||
.value[idx].isconfirm ==
|
||||
"N")
|
||||
Row(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.end,
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () {
|
||||
print('Deleted');
|
||||
},
|
||||
child: Chip(
|
||||
label: Text(
|
||||
'Deleted',
|
||||
style: TextStyle(
|
||||
color: Constant.textWhite,
|
||||
),
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
side: BorderSide(
|
||||
color:
|
||||
Constant.bgTextChipDelete),
|
||||
borderRadius:
|
||||
BorderRadius.circular(
|
||||
50,
|
||||
),
|
||||
),
|
||||
backgroundColor:
|
||||
Constant.bgTextDelete,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
// Row(
|
||||
// children: [
|
||||
// Container(
|
||||
// width: Constant.getActualXPhone(
|
||||
// context: context, x: 40),
|
||||
// height: Constant.getActualYPhone(
|
||||
// context: context,
|
||||
// y: 40,
|
||||
// ),
|
||||
// child: Image.asset(
|
||||
// "images/icon_delete.png",
|
||||
// // scale: 1,
|
||||
// ),
|
||||
// ),
|
||||
// SizedBox(
|
||||
// height: Constant.getActualYPhone(
|
||||
// context: context, y: 12),
|
||||
// ),
|
||||
// Expanded(
|
||||
// child: ElevatedButton(
|
||||
// style: ButtonStyle(
|
||||
// backgroundColor: MaterialStateColor
|
||||
// .resolveWith((st) => Constant
|
||||
// .pcBtnBackgroundColor),
|
||||
// shape:
|
||||
// MaterialStateProperty.all<
|
||||
// RoundedRectangleBorder>(
|
||||
// RoundedRectangleBorder(
|
||||
// borderRadius:
|
||||
// BorderRadius.circular(
|
||||
// 8),
|
||||
// side: BorderSide(
|
||||
// color: Constant
|
||||
// .pcBtnBackgroundColor,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// shadowColor:
|
||||
// MaterialStateProperty.all(
|
||||
// Color(0xffff48423d)),
|
||||
// elevation:
|
||||
// MaterialStateProperty.all(
|
||||
// 4.0),
|
||||
// ),
|
||||
// child: Stack(
|
||||
// children: [
|
||||
// Text(
|
||||
// 'Confirmed',
|
||||
// style: Constant.body1(
|
||||
// context: context)
|
||||
// .copyWith(
|
||||
// fontWeight:
|
||||
// FontWeight
|
||||
// .w600,
|
||||
// color: Constant
|
||||
// .white),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// onPressed: () {},
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user