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.
59 lines
1.6 KiB
59 lines
1.6 KiB
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
import 'package:smartfit_app_mobile/common/colo_extension.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class NotificationRow extends StatelessWidget {
|
|
final Map nObj;
|
|
const NotificationRow({super.key, required this.nObj});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
|
child: Row(
|
|
children: [
|
|
ClipRRect(
|
|
borderRadius: BorderRadius.circular(30),
|
|
child: SvgPicture.asset(
|
|
nObj["image"].toString(),
|
|
width: 40,
|
|
height: 40
|
|
),
|
|
),
|
|
const SizedBox(
|
|
width: 15,
|
|
),
|
|
Expanded(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
nObj["title"].toString(),
|
|
style: TextStyle(
|
|
color: TColor.black,
|
|
fontWeight: FontWeight.w500,
|
|
fontSize: 12),
|
|
),
|
|
Text(
|
|
nObj["time"].toString(),
|
|
style: TextStyle(
|
|
color: TColor.gray,
|
|
fontSize: 10,
|
|
),
|
|
),
|
|
],
|
|
)),
|
|
IconButton(
|
|
onPressed: () {},
|
|
icon: SvgPicture.asset(
|
|
"assets/img/sub_menu.svg",
|
|
width: 15,
|
|
height: 15,
|
|
fit: BoxFit.contain,
|
|
))
|
|
],
|
|
),
|
|
);
|
|
}
|
|
} |