forked from eatvio/eatvio_app
feat(order info): added order info screen
This commit is contained in:
@@ -16,7 +16,7 @@ class IngredientsWidget extends StatelessWidget {
|
||||
return MainBackgroundBouble(
|
||||
child: ExpansionTile(
|
||||
initiallyExpanded: true,
|
||||
shape: Border(),
|
||||
shape: const Border(),
|
||||
title: Text(
|
||||
s.ingredients,
|
||||
style: TextStyles.headingXLSemibold.copyWith(color: appTheme.black),
|
||||
@@ -34,7 +34,7 @@ class IngredientsWidget extends StatelessWidget {
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 4),
|
||||
const SizedBox(width: 4),
|
||||
Builder(
|
||||
builder: (context) {
|
||||
final portion = Portion.getPortionFromValue(recipe.ingredients![index].unit ?? '');
|
||||
@@ -44,7 +44,7 @@ class IngredientsWidget extends StatelessWidget {
|
||||
portionName = getLocalizedMeasurementUnits(s, portion);
|
||||
}
|
||||
return Text(
|
||||
'${recipe.ingredients![index].name} - ${recipe.ingredients![index].portion} ${portionName}',
|
||||
'${recipe.ingredients![index].name} - ${recipe.ingredients![index].portion} $portionName',
|
||||
style: TextStyles.textMMedium.copyWith(color: appTheme.black),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ class StepsWidget extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final s = S.of(context);
|
||||
return MainBackgroundBouble(
|
||||
padding: EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
spacing: 16,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -32,7 +32,7 @@ class StepsWidget extends StatelessWidget {
|
||||
color: appTheme.blueA400,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
||||
child: Text(
|
||||
'${s.step} ${index + 1}',
|
||||
style: TextStyles.textSSemibold.copyWith(color: appTheme.whiteA700),
|
||||
@@ -44,7 +44,7 @@ class StepsWidget extends StatelessWidget {
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
child: Image.network(
|
||||
baseUrl + '/storage/' + recipe.steps![index].image,
|
||||
'$baseUrl/storage/${recipe.steps![index].image}',
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user