feat : new changes from back
This commit is contained in:
@@ -49,7 +49,7 @@ class ExpandableListItem2 extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Container(
|
||||
height: 50.h,
|
||||
height: 55.h,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.only(
|
||||
|
||||
@@ -4,8 +4,12 @@ import 'package:rasadyar_core/core.dart';
|
||||
Widget buildRow({
|
||||
required String title,
|
||||
required String value,
|
||||
String? titleLabel,
|
||||
String? valueLabel,
|
||||
TextStyle? titleStyle,
|
||||
TextStyle? valueStyle,
|
||||
TextStyle? titleLabelStyle,
|
||||
TextStyle? valueLabelStyle,
|
||||
}) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4.0),
|
||||
@@ -14,18 +18,44 @@ Widget buildRow({
|
||||
children: [
|
||||
Flexible(
|
||||
flex: 2,
|
||||
child: Text(
|
||||
title,
|
||||
textAlign: TextAlign.right,
|
||||
style: titleStyle ?? AppFonts.yekan14.copyWith(color: AppColor.darkGreyDarkHover),
|
||||
child: RichText(
|
||||
text: TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: title,
|
||||
style: titleStyle ?? AppFonts.yekan14.copyWith(color: AppColor.darkGreyDarkHover),
|
||||
),
|
||||
if (titleLabel != null) ...[
|
||||
TextSpan(
|
||||
text: ' ($titleLabel)',
|
||||
style:
|
||||
titleLabelStyle ??
|
||||
AppFonts.yekan14.copyWith(color: AppColor.mediumGreyDarkHover),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Flexible(
|
||||
flex: 2,
|
||||
child: Text(
|
||||
value,
|
||||
textAlign: TextAlign.left,
|
||||
style: valueStyle ?? AppFonts.yekan14.copyWith(color: AppColor.darkGreyDarkHover),
|
||||
child: RichText(
|
||||
text: TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: value,
|
||||
style: valueStyle ?? AppFonts.yekan14.copyWith(color: AppColor.darkGreyDarkHover),
|
||||
),
|
||||
if (valueLabel != null) ...[
|
||||
TextSpan(
|
||||
text: ' ($valueLabel)',
|
||||
style:
|
||||
valueLabelStyle ??
|
||||
AppFonts.yekan12.copyWith(color: AppColor.mediumGreyDarkHover),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -109,7 +139,7 @@ Widget buildUnitRow({
|
||||
style: valueStyle ?? AppFonts.yekan14.copyWith(color: AppColor.darkGreyDarkHover),
|
||||
),
|
||||
Visibility(
|
||||
visible: value != null ||( value?.isNotEmpty ?? false),
|
||||
visible: value != null || (value?.isNotEmpty ?? false),
|
||||
child: Text(
|
||||
unit,
|
||||
textAlign: TextAlign.left,
|
||||
|
||||
@@ -153,13 +153,13 @@ void _defaultHideLoading() {
|
||||
|
||||
void defaultShowSuccessMessage(
|
||||
String message, {
|
||||
int durationInSeconds = 2,
|
||||
int durationInSeconds = 1500,
|
||||
VoidCallback? onDismissed,
|
||||
}) {
|
||||
Get.snackbar(
|
||||
'موفقیت',
|
||||
message,
|
||||
duration: Duration(seconds: durationInSeconds),
|
||||
duration: Duration(milliseconds: durationInSeconds),
|
||||
snackPosition: SnackPosition.TOP,
|
||||
backgroundColor: Colors.green,
|
||||
snackbarStatus: (status) {
|
||||
|
||||
Reference in New Issue
Block a user