medical file changes

pull/109/head
aamir-csol 1 month ago
parent 19365375f6
commit d256eec392

@ -330,7 +330,7 @@ class Utils {
repeat: false, reverse: false, frameRate: FrameRate(60), width: width.h, height: height.h, fit: BoxFit.fill), repeat: false, reverse: false, frameRate: FrameRate(60), width: width.h, height: height.h, fit: BoxFit.fill),
SizedBox(height: 16.h), SizedBox(height: 16.h),
(noDataText ?? LocaleKeys.noDataAvailable.tr()) (noDataText ?? LocaleKeys.noDataAvailable.tr())
.toText16(weight: FontWeight.w500, color: AppColors.greyTextColor, isCenter: true) .toText14(weight: FontWeight.w500, color: AppColors.greyTextColor, isCenter: true)
.paddingSymmetrical(64.w, 0.h), .paddingSymmetrical(64.w, 0.h),
SizedBox(height: 16.h), SizedBox(height: 16.h),
callToActionButton callToActionButton

@ -263,7 +263,7 @@ extension EmailValidator on String {
style: TextStyle(fontSize: 19.f, fontWeight: isBold ? FontWeight.bold : FontWeight.normal, color: color ?? AppColors.blackColor, letterSpacing: -0.4), style: TextStyle(fontSize: 19.f, fontWeight: isBold ? FontWeight.bold : FontWeight.normal, color: color ?? AppColors.blackColor, letterSpacing: -0.4),
); );
Widget toText20({Color? color, FontWeight? weight, bool isBold = false}) => Text( Widget toText20({Color? color, FontWeight? weight, bool isBold = false, }) => Text(
this, this,
style: TextStyle( style: TextStyle(
fontSize: 20.f, fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.normal), color: color ?? AppColors.blackColor, letterSpacing: -0.4), fontSize: 20.f, fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.normal), color: color ?? AppColors.blackColor, letterSpacing: -0.4),

@ -245,39 +245,43 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
isBorderAllowed: false, isBorderAllowed: false,
isAllowLeadingIcon: true, isAllowLeadingIcon: true,
padding: EdgeInsets.symmetric(vertical: 8.h, horizontal: 8.h), padding: EdgeInsets.symmetric(vertical: 8.h, horizontal: 8.h),
leadingIcon: AppAssets.student_card, leadingIcon: AppAssets.search_icon,
hintColor: AppColors.textColor,
).paddingSymmetrical(24.w, 0.0), ).paddingSymmetrical(24.w, 0.0),
SizedBox(height: 16.h), SizedBox(height: 16.h),
// Using CustomExpandableList // Using CustomExpandableList
CustomExpandableList( CustomExpandableList(
expansionMode: ExpansionMode.exactlyOne, expansionMode: ExpansionMode.exactlyOne,
dividerColor: Color(0xFF2B353E1A), dividerColor: Color(0xFF2B353E1A),
itemPadding: EdgeInsets.symmetric(vertical: 16.h, horizontal: 14.h),
items: [ items: [
ExpandableListItem( ExpandableListItem(
title: "Medical Services".toText20(weight: FontWeight.w500), title: "Medical Services".toText18(weight: FontWeight.w600),
children: [ children: [
SizedBox(height: 10.h), SizedBox(height: 10.h),
getSelectedTabData(0), getSelectedTabData(0),
], ],
), ),
ExpandableListItem( ExpandableListItem(
title: "Medical Reports".toText20( title: "Medical Reports".toText18(
weight: FontWeight.w500, weight: FontWeight.w600,
), ),
expandedBackgroundColor: Colors.transparent,
children: [ children: [
SizedBox(height: 10.h), SizedBox(height: 10.h),
getSelectedTabData(2), getSelectedTabData(2),
]), ]),
ExpandableListItem( ExpandableListItem(
title: "Insurance & Payments".toText20(weight: FontWeight.w500), title: "Insurance & Payments".toText18(weight: FontWeight.w600),
expandedBackgroundColor: Colors.transparent,
children: [ children: [
SizedBox(height: 10.h), SizedBox(height: 10.h),
getSelectedTabData(1), getSelectedTabData(1),
], ],
), ),
ExpandableListItem( ExpandableListItem(
title: "Tracker & Others".toText20(weight: FontWeight.w500), title: "Tracker & Others".toText18(weight: FontWeight.w600),
expandedBackgroundColor: Colors.transparent,
children: [ children: [
Text("Blood Report"), Text("Blood Report"),
SizedBox(height: 8), SizedBox(height: 8),
@ -481,9 +485,9 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
}, },
separatorBuilder: (BuildContext cxt, int index) => SizedBox(width: 12.h), separatorBuilder: (BuildContext cxt, int index) => SizedBox(width: 12.h),
), ),
).paddingSymmetrical(0.w, 0); ).paddingSymmetrical(0.w, 0.h);
}), }),
SizedBox(height: 24.h), SizedBox(height: 10.h),
"Lab & Radiology".needTranslation.toText16(weight: FontWeight.w500, letterSpacing: -0.2), "Lab & Radiology".needTranslation.toText16(weight: FontWeight.w500, letterSpacing: -0.2),
SizedBox(height: 16.h), SizedBox(height: 16.h),
Row( Row(

@ -255,7 +255,7 @@ class ExpandableListTheme {
return ExpandableListTheme( return ExpandableListTheme(
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
expandedBackgroundColor: Colors.grey.shade50, expandedBackgroundColor: Colors.transparent,
dividerColor: Colors.grey.shade300, dividerColor: Colors.grey.shade300,
defaultTrailingIcon: Icon( defaultTrailingIcon: Icon(
Icons.keyboard_arrow_down, Icons.keyboard_arrow_down,

@ -47,38 +47,40 @@ class TextInputWidget extends StatelessWidget {
final bool isMultiline; final bool isMultiline;
final int minLines; final int minLines;
final int maxLines; final int maxLines;
final Color? hintColor;
// final List<Country> countryList; // final List<Country> countryList;
// final Function(Country)? onCountryChange; // final Function(Country)? onCountryChange;
TextInputWidget( TextInputWidget({
{super.key, super.key,
required this.labelText, required this.labelText,
required this.hintText, required this.hintText,
this.controller, this.controller,
this.onChange, this.onChange,
this.onCalendarTypeChanged, this.onCalendarTypeChanged,
this.prefix, this.prefix,
this.isEnable = true, this.isEnable = true,
this.isBorderAllowed = true, this.isBorderAllowed = true,
this.isAllowRadius = true, this.isAllowRadius = true,
this.isReadOnly = false, this.isReadOnly = false,
this.keyboardType = TextInputType.number, this.keyboardType = TextInputType.number,
this.focusNode, this.focusNode,
this.autoFocus = false, this.autoFocus = false,
this.padding, this.padding,
this.isAllowLeadingIcon = false, this.isAllowLeadingIcon = false,
this.leadingIcon, this.leadingIcon,
this.isCountryDropDown = false, this.isCountryDropDown = false,
this.hasError = false, this.hasError = false,
this.errorMessage, this.errorMessage,
this.onCountryChange, this.onCountryChange,
this.selectionType, this.selectionType,
this.fontSize, this.fontSize,
this.isWalletAmountInput = false, this.isWalletAmountInput = false,
this.suffix, this.suffix,
this.labelColor, this.labelColor,
this.onSubmitted, this.onSubmitted,
this.hintColor,
// multiline defaults // multiline defaults
this.isMultiline = false, this.isMultiline = false,
this.minLines = 3, this.minLines = 3,
@ -274,7 +276,7 @@ class TextInputWidget extends StatelessWidget {
decoration: InputDecoration( decoration: InputDecoration(
isDense: true, isDense: true,
hintText: hintText, hintText: hintText,
hintStyle: TextStyle(fontSize: 14.f, height: 21 / 16, fontWeight: FontWeight.w500, color: Color(0xff898A8D), letterSpacing: -0.75), hintStyle: TextStyle(fontSize: 14.f, height: 21 / 16, fontWeight: FontWeight.w500, color: hintColor != null ? AppColors.textColor : Color(0xff898A8D), letterSpacing: -0.75),
prefixIconConstraints: BoxConstraints(minWidth: 30.h), prefixIconConstraints: BoxConstraints(minWidth: 30.h),
prefixIcon: prefix == null ? null : "+${prefix!}".toText14(letterSpacing: -1, color: AppColors.textColor, weight: FontWeight.w500), prefixIcon: prefix == null ? null : "+${prefix!}".toText14(letterSpacing: -1, color: AppColors.textColor, weight: FontWeight.w500),
contentPadding: EdgeInsets.zero, contentPadding: EdgeInsets.zero,

Loading…
Cancel
Save