step 16 : add M_CompanyID for trans, menu drawer, fix bug overflow btn

This commit is contained in:
sindhu
2024-01-16 10:38:44 +07:00
parent a317946fc2
commit 198f7ccd17
9 changed files with 1201 additions and 871 deletions

View File

@@ -0,0 +1,91 @@
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import '../../app/constant.dart';
import '../../widget/custom_drawer.dart';
class HistoryTransaksiScreen extends HookConsumerWidget {
const HistoryTransaksiScreen({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
return Padding(
padding: EdgeInsets.only(
top: Constant.getActualYPhone(context: context, y: 30),
),
child: Scaffold(
appBar: AppBar(
title: Text(
'History Transaksi',
style: TextStyle(color: Constant.textWhite),
),
backgroundColor: Constant.pcBtnBackgroundColor,
iconTheme: IconThemeData(
color: Constant.textWhite,
),
),
drawer: CustomDrawer(),
body: SafeArea(
child: SingleChildScrollView(
child: Padding(
padding: EdgeInsets.all(20),
child: Container(
height: MediaQuery.of(context).size.height - 10,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Card(
margin: EdgeInsets.all(16.0),
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Tipe Catatan: DEBIT'),
SizedBox(height: 8.0),
Text('Tanggal: 15-12-2023'),
SizedBox(height: 8.0),
Text('Nominal: 100.000'),
SizedBox(height: 8.0),
Text('Kategori: Jumat Sehat'),
SizedBox(height: 8.0),
Chip(
label: Text('Verify'),
backgroundColor: Constant.green_600,
labelStyle: TextStyle(color: Colors.white),
),
SizedBox(height: 16.0),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
ElevatedButton(
onPressed: () {
// Handle delete button tap
},
child: Text(
'Delete',
style: TextStyle(
color: Constant.textWhite
),
),
style: ElevatedButton.styleFrom(
backgroundColor: Colors
.red, // Ganti dengan warna delete button yang diinginkan
),
),
],
),
],
),
),
),
],
),
),
),
),
),
),
);
}
}

File diff suppressed because it is too large Load Diff