You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.7 KiB
61 lines
1.7 KiB
import 'package:flutter_svg/svg.dart';
|
|
import 'package:smartfit_app_mobile/common/colo_extension.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class LatestActivityRow extends StatelessWidget {
|
|
final Map wObj;
|
|
const LatestActivityRow({super.key, required this.wObj});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
|
|
return Container(
|
|
margin: const EdgeInsets.symmetric(vertical: 8),
|
|
|
|
child: Row(
|
|
children: [
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(30),
|
|
child: SvgPicture.asset(
|
|
wObj["image"].toString(),
|
|
width: 50,
|
|
height: 50,
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
|
|
const SizedBox(width: 15,),
|
|
Expanded(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
wObj["title"].toString(),
|
|
style: TextStyle(
|
|
color: TColor.black,
|
|
fontSize: 12, fontWeight: FontWeight.w500),
|
|
),
|
|
|
|
Text(
|
|
wObj["time"].toString(),
|
|
style: TextStyle(
|
|
color: TColor.gray,
|
|
fontSize: 10,),
|
|
),
|
|
|
|
|
|
|
|
],
|
|
)),
|
|
IconButton(
|
|
onPressed: () {},
|
|
icon: Image.asset(
|
|
"assets/img/sub_menu.png",
|
|
width: 12,
|
|
height: 12,
|
|
fit: BoxFit.contain,
|
|
))
|
|
],
|
|
));
|
|
}
|
|
} |