From 74ecbbdbffa45ac21a1b55e17b2461b3bc22f5d6 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Mon, 2 Jun 2025 13:31:00 +0300 Subject: [PATCH] fix: plan widget in profile image size overflow --- lib/features/feed/presentation/widgets/plan_widget.dart | 3 ++- lib/features/profile/presentation/pages/profile_screen.dart | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/features/feed/presentation/widgets/plan_widget.dart b/lib/features/feed/presentation/widgets/plan_widget.dart index e47ca1db..c1ac6b90 100644 --- a/lib/features/feed/presentation/widgets/plan_widget.dart +++ b/lib/features/feed/presentation/widgets/plan_widget.dart @@ -62,8 +62,9 @@ class _PlanWidgetState extends State { borderRadius: const BorderRadius.vertical(top: Radius.circular(12)), child: CachedNetworkImage( imageUrl: '$baseUrl/storage/${widget.plan.image}', - fit: BoxFit.fitWidth, + fit: BoxFit.cover, width: MediaQuery.of(context).size.width, + height: 426, ), ), Positioned( diff --git a/lib/features/profile/presentation/pages/profile_screen.dart b/lib/features/profile/presentation/pages/profile_screen.dart index d5d360d8..174500c1 100644 --- a/lib/features/profile/presentation/pages/profile_screen.dart +++ b/lib/features/profile/presentation/pages/profile_screen.dart @@ -329,7 +329,7 @@ class _ProfileScreenState extends State { ), const SizedBox(height: 8), SizedBox( - height: 378, + height: 759, child: PageView.builder( itemBuilder: (BuildContext context, int index) { return PlanWidget(