child: Row(
children: [
Text(
' ${DesignConfiguration.getPriceFormat(context, price)!}',
style: TextStyle(
color: Theme.of(context).colorScheme.blue,
fontSize: textFontSize14,
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
fontFamily: 'ubuntu',
),
),
showDiscountAtSameLine
? Expanded(
child: Padding(
padding:
const EdgeInsetsDirectional.only(
start: 10.0,
top: 5,
),
child: Row(
children: <Widget>[
Text(
double.parse(productDetails
.prVarientList![0]
.disPrice!) !=
0
? '${DesignConfiguration.getPriceFormat(context, double.parse(productDetails.prVarientList![0].price!))}'
: '',
style: Theme.of(context)
.textTheme
.labelSmall!
.copyWith(
color: Theme.of(context)
.colorScheme
.lightBlack,
fontFamily: 'ubuntu',
decoration: TextDecoration
.lineThrough,
decorationColor:
colors.darkColor3,
decorationStyle:
TextDecorationStyle
.solid,
decorationThickness: 2,
letterSpacing: 0,
fontSize: textFontSize10,
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
),
),
if (double.parse(offPer).round() >
0)
Text(
' ${double.parse(offPer).round()}%',
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context)
.textTheme
.labelSmall!
.copyWith(
fontFamily: 'ubuntu',
color: colors.primary,
letterSpacing: 0,
fontSize: textFontSize10,
fontWeight:
FontWeight.w400,
fontStyle:
FontStyle.normal,
),
),
],
),
),
)
: const SizedBox(),
],
),