feat(consultant): add borderRadius for photo

This commit is contained in:
mso7nueh
2024-10-08 13:18:04 +03:00
parent 0b254141f8
commit 3fba10b73f
5 changed files with 61 additions and 6 deletions

View File

@@ -25,6 +25,7 @@ import 'package:eatvio_app/features/recipes/presentation/pages/recipe_create_scr
import 'package:eatvio_app/features/recipes/presentation/pages/recipe_edit_screen.dart';
import 'package:eatvio_app/features/registration/presentation/pages/registration_screen.dart';
import 'package:eatvio_app/features/settings/entities/settings_entity.dart';
import 'package:eatvio_app/features/settings/presentation/pages/change_email_screen.dart';
import 'package:eatvio_app/features/settings/presentation/pages/change_password_screen.dart';
import 'package:eatvio_app/features/settings/presentation/pages/general_info_screen.dart';
import 'package:eatvio_app/features/settings/presentation/pages/other_info_screen.dart';
@@ -216,6 +217,13 @@ class AppRouter {
settingsEntity: state.extra as SettingsEntity,
),
),
GoRoute(
path: 'change-email-screen',
name: 'changeEmailScreen',
builder: (context, state) => ChangeEmailScreen(
settingsEntity: state.extra as SettingsEntity,
),
),
],
),
GoRoute(

View File

@@ -10,8 +10,8 @@ class AdditionalSettingsScreen extends StatefulWidget {
}
class _AdditionalSettingsScreenState extends State<AdditionalSettingsScreen> {
bool publishDiplomasAndCertificatesInProfile = false;
bool haveMedicalDegree = false;
bool publishDiplomasAndCertificatesInProfile = true;
bool haveMedicalDegree = true;
@override
Widget build(BuildContext context) {

View File

@@ -70,10 +70,17 @@ class _PhotoOrScansScreenState extends State<PhotoOrScansScreen> {
child: Stack(
clipBehavior: Clip.none,
children: [
Ink.image(
fit: BoxFit.cover,
image: FileImage(
File(images[index].path),
Ink(
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(20),
),
image: DecorationImage(
fit: BoxFit.fitHeight,
image: FileImage(
File(images[index].path),
),
),
),
),
Positioned(

View File

@@ -0,0 +1,28 @@
import 'package:eatvio_app/features/settings/entities/settings_entity.dart';
import 'package:flutter/material.dart';
class ChangeEmailScreen extends StatefulWidget {
final SettingsEntity settingsEntity;
const ChangeEmailScreen({
super.key,
required this.settingsEntity,
});
@override
State<ChangeEmailScreen> createState() => _ChangeEmailScreenState();
}
class _ChangeEmailScreenState extends State<ChangeEmailScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Смена Email-a'),
),
body: Center(
child: Text('Coming soon...'),
),
);
}
}

View File

@@ -175,6 +175,18 @@ class _SettingsScreenState extends State<SettingsScreen> {
),
title: 'Сменить пароль',
),
_divider(context),
_tile(
onTap: () => GoRouter.of(context).pushNamed(
'changeEmailScreen',
extra: SettingsEntity(
profileSettingsModel: state.profileSettings,
profileDetailsModel: state.profileDetails,
settingsCubit: settingsCubit,
),
),
title: 'Сменить Email',
),
],
);
}