From 6ed7faed159788f01434cb8c40d1bc2335403ff2 Mon Sep 17 00:00:00 2001 From: misha Date: Fri, 31 Oct 2025 13:23:13 +0300 Subject: [PATCH] feat(personalDiets): addde base url from app config for consultation widget --- .../presentation/consultation_widget.dart | 7 ++++--- lib/l10n/intl_en.arb | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/features/personal_diet_suggestion/presentation/consultation_widget.dart b/lib/features/personal_diet_suggestion/presentation/consultation_widget.dart index 3f47db11..fa64362c 100644 --- a/lib/features/personal_diet_suggestion/presentation/consultation_widget.dart +++ b/lib/features/personal_diet_suggestion/presentation/consultation_widget.dart @@ -1,5 +1,6 @@ +import 'package:eatvio_app/core/app_config.dart'; import 'package:eatvio_app/core/app_router.dart'; -import 'package:eatvio_app/core/const.dart'; +import 'package:eatvio_app/core/locator_service.dart'; import 'package:eatvio_app/core/theme/custom_text_style.dart'; import 'package:eatvio_app/core/theme/theme_helper.dart'; import 'package:eatvio_app/core/widgets/bottom_sheet_handler_bar.dart'; @@ -32,7 +33,7 @@ class ConsultationWidget extends StatelessWidget { children: [ CircleAvatar( radius: 30, - backgroundImage: NetworkImage(baseUrl + consultationModel.userProfilePhotoUrl), + backgroundImage: NetworkImage(sl().baseUrl + consultationModel.userProfilePhotoUrl), ), const SizedBox(width: 12), Column( @@ -61,7 +62,7 @@ class ConsultationWidget extends StatelessWidget { children: [ CircleAvatar( radius: 30, - backgroundImage: NetworkImage(baseUrl + consultationModel.userProfilePhotoUrl), + backgroundImage: NetworkImage(sl().baseUrl + consultationModel.userProfilePhotoUrl), ), const SizedBox(width: 12), Column( diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 7528bdd1..28cbf68d 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -407,8 +407,7 @@ "allowAccess": "Разрешить доступ" , "copy": "Скопировать", "reply": "Ответить", - "deleteComment": "Удалить комментарий" - , + "deleteComment": "Удалить комментарий", "personalDietCreating": "Составление индивидуальной диеты", "dietSuggestion": "Предложение диеты", "suggestDiet": "Предложить диету",