30 lines
822 B
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,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|