Perbarui sintaks Dart dan perbaiki opacity warna

- Ganti `Key? key` dengan `super.key` di berbagai tampilan
- Gunakan `withAlpha()` sebagai pengganti `withOpacity()` untuk transparansi warna
- Lakukan penyesuaian kecil pada tata letak dan styling komponen
- Hapus impor yang tidak digunakan
- Sederhanakan beberapa bagian kode dashboard
This commit is contained in:
Khafidh Fuadi
2025-03-08 14:13:59 +07:00
parent 02711a512f
commit 9690764cf4
6 changed files with 58 additions and 72 deletions

View File

@ -3,7 +3,7 @@ import 'package:get/get.dart';
import 'package:penyaluran_app/app/modules/dashboard/controllers/dashboard_controller.dart';
class DonaturDashboardView extends GetView<DashboardController> {
const DonaturDashboardView({Key? key}) : super(key: key);
const DonaturDashboardView({super.key});
@override
Widget build(BuildContext context) {
@ -145,8 +145,8 @@ class DonaturDashboardView extends GetView<DashboardController> {
onPressed: () {
// Navigasi ke halaman penitipan bantuan baru
},
child: const Icon(Icons.add),
tooltip: 'Titipkan Bantuan Baru',
child: const Icon(Icons.add),
),
);
}
@ -187,7 +187,7 @@ class DonaturDashboardView extends GetView<DashboardController> {
Container(
padding: const EdgeInsets.all(8.0),
decoration: BoxDecoration(
color: color.withOpacity(0.1),
color: color.withAlpha(26),
borderRadius: BorderRadius.circular(8.0),
),
child: Icon(