import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:onufitness/constants/asset_constants.dart'; import 'package:onufitness/constants/color_constant.dart'; import 'package:onufitness/utils/helper_function.dart'; Widget coachStatusButton({ required String status, required String statusText, required VoidCallback onTap, }) { return InkWell( onTap: onTap, child: Container( height: isTablet ? 90.h : null, padding: EdgeInsets.all(10.w), decoration: BoxDecoration( gradient: LinearGradient( colors: [ becomeACoachGradient1.withValues(alpha: 0.4), becomeACoachGradient2, ], ), borderRadius: BorderRadius.circular(12.r), boxShadow: [ BoxShadow( blurRadius: 1, color: Color(outlineButtonBorderColorSky), spreadRadius: 1, offset: Offset(0, 3), ), ], ), child: Row( children: [ SizedBox( height: isTablet ? 40.h : 25.h, width: isTablet ? 40.w : 25.w, child: Image.asset(AssetConstants.accountIcon), ), SizedBox(width: 12.w), Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, children: [ Text( "Coach Application", style: TextStyle( fontWeight: FontWeight.w600, fontSize: isTablet ? 22.sp : 18.sp, ), ), SizedBox(height: 2.h), Text( statusText, style: TextStyle( fontWeight: FontWeight.w500, fontSize: isTablet ? 18.sp : 14.sp, color: Colors.black87, ), ), ], ), ), Icon(Icons.warning), ], ), ), ); }