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/common_cancel_button.dart

30 lines
822 B
Dart

import 'package:flutter/material.dart';
import 'package:ftc_mobile_app/ftc_mobile_app.dart';
class CommonCloseTextButton extends StatelessWidget {
final VoidCallback? onTap;
const CommonCloseTextButton({super.key, this.onTap});
@override
Widget build(BuildContext context) {
return InkWell(
onTap: onTap ?? () => Navigator.of(context).pop(),
child: Container(
height: 30.h,
decoration: BoxDecoration(
border: Border.all(color: CustomAppColors.kLightGreyColor),
borderRadius: BorderRadius.circular(5.r),
),
alignment: Alignment.center,
child: CustomTextWidget(
text: 'Close',
fontColor: CustomAppColors.kBlackColor,
fontSize: 14.sp,
fontWeight: FontWeight.w400,
),
),
);
}
}