step 28 : add usertransaki home dan history

This commit is contained in:
sindhu
2024-01-19 10:44:49 +07:00
parent 60919d6d12
commit c2f43f9061
2 changed files with 96 additions and 21 deletions

View File

@@ -430,7 +430,8 @@ class HomeScreen extends HookConsumerWidget {
Align( Align(
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Text( child: Text(
listTransaksiHome.value[idx].note listTransaksiHome
.value[idx].note
.toString(), .toString(),
style: Constant.body1( style: Constant.body1(
context: context) context: context)
@@ -446,7 +447,7 @@ class HomeScreen extends HookConsumerWidget {
context: context, y: 10), context: context, y: 10),
), ),
// Tanggal Created align right // Tanggal Created and by align right
Row( Row(
mainAxisAlignment: mainAxisAlignment:
@@ -472,6 +473,42 @@ class HomeScreen extends HookConsumerWidget {
fontSize: 14, fontSize: 14,
), ),
), ),
Text(
' by : '+listTransaksiHome
.value[idx].usertransaksi
.toString(),
overflow:
TextOverflow.ellipsis,
style: Constant.body1(
context: context)
.copyWith(
fontWeight:
FontWeight.normal,
fontStyle: FontStyle.italic,
color: Constant.pcBtnBackgroundColor,
fontSize: 14,
),
),
Expanded(
child: Container(
child: Text(
' by : '+listTransaksiHome
.value[idx].usertransaksi
.toString(),
overflow:
TextOverflow.ellipsis,
style: Constant.body1(
context: context)
.copyWith(
fontWeight:
FontWeight.normal,
fontStyle: FontStyle.italic,
color: Constant.pcBtnBackgroundColor,
fontSize: 14,
),
),
),
),
], ],
), ),
], ],

View File

@@ -1362,9 +1362,14 @@ class HistoryTransaksiScreen extends HookConsumerWidget {
), ),
], ],
), ),
// Tanggal Created align right // Tanggal Created dan by align right
Row( Column(
children: [
Align(
alignment:
Alignment.centerRight,
child: Row(
mainAxisAlignment: mainAxisAlignment:
MainAxisAlignment.end, MainAxisAlignment.end,
children: [ children: [
@@ -1376,16 +1381,49 @@ class HistoryTransaksiScreen extends HookConsumerWidget {
.tanggalcreated .tanggalcreated
.toString(), .toString(),
), ),
overflow: TextOverflow.ellipsis, overflow:
TextOverflow.ellipsis,
style: Constant.body1( style: Constant.body1(
context: context) context: context)
.copyWith( .copyWith(
fontWeight: FontWeight.normal, fontWeight:
fontStyle: FontStyle.italic, FontWeight.normal,
color: Constant.textBlack, fontStyle:
FontStyle.italic,
color:
Constant.textBlack,
fontSize: 14, fontSize: 14,
), ),
), ),
Expanded(
child: Container(
child: Text(
' by : ' +
listSearchHistory
.value[idx]
.usertransaksi
.toString(),
overflow: TextOverflow
.ellipsis,
style: Constant.body1(
context:
context)
.copyWith(
fontWeight:
FontWeight
.normal,
fontStyle: FontStyle
.italic,
color: Constant
.pcBtnBackgroundColor,
fontSize: 14,
),
),
),
),
],
),
),
], ],
), ),
], ],