Create LatestReport Page
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class LatestReportEntry extends StatelessWidget{
|
||||
const LatestReportEntry({super.key, required this.text, required this.icon, this.onTap});
|
||||
|
||||
final String text;
|
||||
final IconData icon;
|
||||
final VoidCallback? onTap;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
return Card(
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadiusGeometry.circular(12)),
|
||||
shadowColor: Colors.white,
|
||||
color: Colors.black38,
|
||||
margin: EdgeInsetsGeometry.fromLTRB(0, 8, 0, 8),
|
||||
child:
|
||||
InkWell(
|
||||
onTap: onTap,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
child: Container(
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(icon),
|
||||
Text(text),
|
||||
],
|
||||
spacing: 8,
|
||||
),
|
||||
margin: EdgeInsetsGeometry.all(16),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user