step 15 : remove padding report

This commit is contained in:
sindhu
2024-01-16 09:03:44 +07:00
parent 088c18f536
commit a317946fc2
7 changed files with 234 additions and 147 deletions

View File

@@ -43,6 +43,7 @@ class TransaksiScreen extends HookConsumerWidget {
final ctrlJumlah = useTextEditingController(text: "");
final ctrlCatatan = useTextEditingController(text: "");
final ctrlNamaPengirim = useTextEditingController(text: "");
final ctrlCompanyName = useTextEditingController(text: "");
String formattedDate = DateFormat('dd-MM-yyyy').format(DateTime.now());
@@ -202,6 +203,46 @@ class TransaksiScreen extends HookConsumerWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// Company Name
Text(
'Company Name',
style: Constant.body1(context: context).copyWith(
fontWeight: FontWeight.w600, color: Constant.textBlack),
),
SizedBox(
height: Constant.getActualYPhone(context: context, y: 10),
),
TextField(
controller: ctrlCompanyName,
readOnly: true,
decoration: InputDecoration(
hintStyle:
Constant.body2_400(context: context).copyWith(
color: Constant.textGreyv2,
),
labelStyle:
Constant.body2_400(context: context).copyWith(
color: Constant.textGreyv2,
),
border: OutlineInputBorder(
borderSide: BorderSide(
color: Colors.orange,
width: 1,
),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(
color: Constant.textGreyv2,
width: 1,
),
),
labelText: "Company Name",
hintText: 'Company Name',
),
),
SizedBox(
height: Constant.getActualYPhone(context: context, y: 20),
),
Text(
'Tanggal Transaksi',
style: Constant.body1(context: context).copyWith(
@@ -714,12 +755,12 @@ class TransaksiScreen extends HookConsumerWidget {
),
onPressed: () {
if (selectedListTypeData.value.typeid.toString() ==
"KREDIT") {
"DEBIT") {
ctrlNamaPengirim.text = "";
// validasi form
} else {
if (selectedListTypeData.value.typeid.toString() ==
"DEBIT") {
"KREDIT") {
selectedListCategory.value.categoryid = "0";
// validasi form
}