feat(consultant): add delete button

This commit is contained in:
mso7nueh
2024-10-07 11:22:24 +03:00
parent 1b52a56b9b
commit 275bf291e2
2 changed files with 40 additions and 14 deletions

View File

@@ -32,18 +32,42 @@ class _CertificatesAndDiplomasScreenState extends State<CertificatesAndDiplomasS
const SizedBox(height: 16),
CustomTextFormField(),
const SizedBox(height: 8),
ListTile(
onTap: onTapCalendar(context),
trailing: Icon(
Icons.keyboard_arrow_down_rounded,
color: Colors.grey.shade700,
),
contentPadding: EdgeInsets.symmetric(horizontal: 12),
title: Text(selectedDate.format('dd MMMM yyyy', 'ru')),
tileColor: Color(0xFFF6F6F6),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
),
Row(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(
width: MediaQuery.of(context).size.width - 92,
child: ListTile(
onTap: onTapCalendar(context),
trailing: Icon(
Icons.keyboard_arrow_down_rounded,
color: Colors.grey.shade700,
),
contentPadding: EdgeInsets.symmetric(horizontal: 12),
title: Text(selectedDate.format('dd MMMM yyyy', 'ru')),
tileColor: Color(0xFFF6F6F6),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
),
),
),
const SizedBox(width: 8),
InkWell(
onTap: () {},
borderRadius: BorderRadius.circular(20),
child: Ink(
height: 52,
width: 52,
decoration: BoxDecoration(
color: Color(0xFFF6F6F6),
borderRadius: BorderRadius.circular(20),
),
child: Icon(
Icons.delete_outline_rounded,
),
),
),
],
),
],
),

View File

@@ -1,5 +1,7 @@
import 'package:eatvio_app/core/const.dart';
import 'package:eatvio_app/theme/theme_helper.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
class LastStepScreen extends StatefulWidget {
const LastStepScreen({super.key});
@@ -34,7 +36,7 @@ class _LastStepScreenState extends State<LastStepScreen> {
CheckboxListTile(
value: checkboxState,
title: Text(
'Я ознакомлен и принимаю договор публичной оферты',
'Я ознакомлен и принимаю договор публичной офёрты',
style: TextStyle(
fontSize: 18,
height: 1,
@@ -58,7 +60,7 @@ class _LastStepScreenState extends State<LastStepScreen> {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 4),
child: TextButton(
onPressed: () {},
onPressed: () async => await launchUrl(Uri.parse(baseUrl + '/oferta_bs.pdf')),
child: Text(
'Договор офёрты',
style: TextStyle(