This repository has been archived on 2024-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
ftc_patient_app/lib/view/custom_widgets/edit_icon.dart

32 lines
865 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ftc_mobile_app/utilities/custom_app_colors.dart';
class EditIcon extends StatelessWidget {
final VoidCallback onTap;
const EditIcon({super.key, required this.onTap});
@override
Widget build(BuildContext context) {
return InkWell(
onTap: onTap,
child: Container(
width: 24.r,
height: 24.r,
// padding: REdgeInsets.all(8),
decoration: BoxDecoration(
color: CustomAppColors.kYellowColor.withOpacity(0.5),
borderRadius: BorderRadius.circular(50.r),
),
child: Center(
child: Icon(
Icons.edit,
color: CustomAppColors.kDarkYellowColor,
size: 16.r,
),
)),
);
}
}