fix: plan widget in profile image size overflow

This commit is contained in:
mso7nueh
2025-06-02 13:31:00 +03:00
parent c95b610c35
commit 74ecbbdbff
2 changed files with 3 additions and 2 deletions

View File

@@ -62,8 +62,9 @@ class _PlanWidgetState extends State<PlanWidget> {
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(

View File

@@ -329,7 +329,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
),
const SizedBox(height: 8),
SizedBox(
height: 378,
height: 759,
child: PageView.builder(
itemBuilder: (BuildContext context, int index) {
return PlanWidget(