From d7aa51c03365c80772ec09e6532f05ee1f977fde Mon Sep 17 00:00:00 2001 From: "mr.mojtaba" Date: Wed, 27 Aug 2025 16:53:21 +0330 Subject: [PATCH] feat : news widget --- lib/presentation/pages/modules/view.dart | 70 +++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/lib/presentation/pages/modules/view.dart b/lib/presentation/pages/modules/view.dart index bba39ed..34fa394 100644 --- a/lib/presentation/pages/modules/view.dart +++ b/lib/presentation/pages/modules/view.dart @@ -54,9 +54,77 @@ class ModulesPage extends GetView { itemCount: controller.moduleList.length, ), ), + SizedBox(height: 24.h), + Container( + height: 107.h, + margin: EdgeInsets.symmetric(horizontal: 16.w), + padding: EdgeInsets.fromLTRB(11.w, 8.h, 8.w, 12.h), + decoration: BoxDecoration( + gradient: LinearGradient( + begin: Alignment(0.00, 0.50), + end: Alignment(1.00, 0.50), + colors: [const Color(0xFFC9D5FF), Colors.white], + ), + borderRadius: BorderRadius.circular(8), + border: Border.all(width: 1.w, color: const Color(0xFFD3D3D3)), + ), + child: Row( + spacing: 11.w, + children: [ + Expanded( + flex: 2, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'آخرین اخبار ', + textAlign: TextAlign.right, + style: AppFonts.yekan16.copyWith( + color: Color(0xFF5B5B5B), + height: 1.90, + ), + ), + Text( + 'اخبار مربوط به جوجه ریزی استان از آخرین روند مطلع شوید اخبار مربوط به جوجه ریزی استان از ', + maxLines: 2, + style: AppFonts.yekan12.copyWith( + color: Color(0xFF5B5B5B), + height: 1.5, + overflow: TextOverflow.ellipsis, + ), + ), + ], + ), + ), + Column( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Container( + width: 103.w, + height: 24.h, + alignment: Alignment.center, + decoration: ShapeDecoration( + color: Colors.white, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(50.r), + ), + ), + child: Text( + 'اطلاعات بیشتر', + textAlign: TextAlign.right, + style: AppFonts.yekan14, + ), + ), + ], + ), + ], + ), + ), + + SizedBox(height: 24.h), SliderWidget(height: 160, widgetTag: "down"), - SizedBox(height: 30.h), + SizedBox(height: 24.h), ], ), ),