forked from eatvio/eatvio_app
feat(consultant): add borderRadius for photo
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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...'),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -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',
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user