80 lines
2.1 KiB
Dart
80 lines
2.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:skripsi/config/theme.dart';
|
|
|
|
class CardDetailTraining extends StatelessWidget {
|
|
const CardDetailTraining({
|
|
super.key,
|
|
required this.tkp,
|
|
required this.jk,
|
|
required this.jtp,
|
|
required this.status,
|
|
required this.name,
|
|
});
|
|
|
|
final String tkp;
|
|
final String jk;
|
|
final String jtp;
|
|
final String status;
|
|
final String name;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
padding: EdgeInsets.all(16.w),
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(20.w), color: secondaryColor),
|
|
child: Column(
|
|
children: [
|
|
Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
SizedBox(
|
|
child: Text('TKP : $tkp', style: robotoKecilHitam),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(height: 10.h),
|
|
Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
SizedBox(
|
|
child: Text('Jumlah Kejahatan : $jk', style: robotoKecilHitam),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(height: 10.h),
|
|
Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
SizedBox(
|
|
child:
|
|
Text('Jarak TKP - Polsek : $jtp', style: robotoKecilHitam),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(height: 10.h),
|
|
Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
SizedBox(
|
|
child: Text('Status : $status', style: robotoKecilHitam),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(height: 10.h),
|
|
Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
SizedBox(
|
|
child: Text('Petugas : $name', style: robotoKecilHitam),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(height: 10.h),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|