35 lines
974 B
Dart
35 lines
974 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:skripsi/config/theme.dart';
|
|
|
|
class StatisticCard extends StatelessWidget {
|
|
const StatisticCard({super.key, required this.judul, required this.isi});
|
|
|
|
final String judul;
|
|
final String isi;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
// width: 100.w,
|
|
// height: 50.h,
|
|
decoration: BoxDecoration(
|
|
color: secondaryColor,
|
|
borderRadius: BorderRadius.circular(12.w),
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsets.all(8.w),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(judul,
|
|
style: robotoBesarHitam.copyWith(fontWeight: FontWeight.w600)),
|
|
Text(isi, style: robotoSedangHitam)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|