forked from eatvio/eatvio_app
feat(order info): added order info screen
This commit is contained in:
@@ -42,7 +42,7 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
CircleAvatar(
|
||||
const CircleAvatar(
|
||||
radius: 30,
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
@@ -51,7 +51,7 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
children: [
|
||||
Text(
|
||||
consultationsEntity.name,
|
||||
style: TextStyle(
|
||||
style: const TextStyle(
|
||||
height: 1,
|
||||
color: Color(0xFF323F4B),
|
||||
fontSize: 16,
|
||||
@@ -61,7 +61,7 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
consultationsEntity.planName,
|
||||
style: TextStyle(
|
||||
style: const TextStyle(
|
||||
height: 1,
|
||||
color: Color(0xFF88949F),
|
||||
fontSize: 14,
|
||||
@@ -89,14 +89,14 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
CustomDivider(),
|
||||
const CustomDivider(),
|
||||
const SizedBox(height: 12),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
'День ${consultationsEntity.currentDayOfPlan} из ${consultationsEntity.totalDaysOfPlan}',
|
||||
style: TextStyle(
|
||||
style: const TextStyle(
|
||||
height: 1,
|
||||
color: Color(0xFF323F4B),
|
||||
fontSize: 16,
|
||||
@@ -116,7 +116,7 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
const Text(
|
||||
'Легенда',
|
||||
style: TextStyle(
|
||||
height: 1,
|
||||
@@ -130,7 +130,7 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
shrinkWrap: true,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
itemBuilder: (context, index) => _legendTitle(titles[index], legendColors[index]),
|
||||
separatorBuilder: (context, index) => SizedBox(height: 16),
|
||||
separatorBuilder: (context, index) => const SizedBox(height: 16),
|
||||
itemCount: titles.length,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
@@ -139,7 +139,7 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
},
|
||||
child: Icon(
|
||||
child: const Icon(
|
||||
Icons.help_outline_rounded,
|
||||
color: Color(0xFF323F4B),
|
||||
size: 20,
|
||||
@@ -157,11 +157,11 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
headerVisible: false,
|
||||
calendarFormat: CalendarFormat.week,
|
||||
calendarStyle: CalendarStyle(
|
||||
weekendDecoration: BoxDecoration(
|
||||
weekendDecoration: const BoxDecoration(
|
||||
color: Colors.white,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
defaultDecoration: BoxDecoration(
|
||||
defaultDecoration: const BoxDecoration(
|
||||
color: Colors.white,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
@@ -169,7 +169,7 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
color: appTheme.blueA400,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
todayTextStyle: TextStyle(
|
||||
todayTextStyle: const TextStyle(
|
||||
color: Colors.black,
|
||||
),
|
||||
todayDecoration: BoxDecoration(
|
||||
@@ -183,11 +183,11 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
CustomDivider(),
|
||||
const CustomDivider(),
|
||||
const SizedBox(height: 12),
|
||||
Text(
|
||||
'${consultationsEntity.paymentAmount} ₽',
|
||||
style: TextStyle(
|
||||
style: const TextStyle(
|
||||
color: Color(0xFF019A3E),
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -201,12 +201,12 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
onTap: () {},
|
||||
child: Ink(
|
||||
width: MediaQuery.of(context).size.width - 32 - 52 - 8,
|
||||
padding: EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
color: appTheme.blueA400,
|
||||
),
|
||||
child: Center(
|
||||
child: const Center(
|
||||
child: Text(
|
||||
'Комментировать отчёт',
|
||||
style: TextStyle(
|
||||
@@ -227,9 +227,9 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
width: 52,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
color: Color(0xFFF6F6F6),
|
||||
color: const Color(0xFFF6F6F6),
|
||||
),
|
||||
child: Center(
|
||||
child: const Center(
|
||||
child: Icon(
|
||||
Icons.chat_outlined,
|
||||
size: 24,
|
||||
@@ -261,7 +261,7 @@ class ConsultationCardWidget extends StatelessWidget {
|
||||
Flexible(
|
||||
child: Text(
|
||||
text,
|
||||
style: TextStyle(
|
||||
style: const TextStyle(
|
||||
height: 1,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
|
||||
Reference in New Issue
Block a user