feat : news widget

This commit is contained in:
2025-08-27 16:53:21 +03:30
parent 4ded6a25d5
commit d7aa51c033

View File

@@ -54,9 +54,77 @@ class ModulesPage extends GetView<ModulesLogic> {
itemCount: controller.moduleList.length, 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"), SliderWidget(height: 160, widgetTag: "down"),
SizedBox(height: 30.h), SizedBox(height: 24.h),
], ],
), ),
), ),