From 0ffb5c146d09149a493ca6d34e82871f077aeae5 Mon Sep 17 00:00:00 2001 From: Daniah Ayad Al-sultani <148902945+Cactuskiller@users.noreply.github.com> Date: Wed, 3 Dec 2025 16:54:37 +0300 Subject: [PATCH] bug : --- lib/screens/attendence_screen.dart | 2 +- lib/screens/holiday_screen.dart | 88 +++++++++++++++++++++++++++--- 2 files changed, 82 insertions(+), 8 deletions(-) diff --git a/lib/screens/attendence_screen.dart b/lib/screens/attendence_screen.dart index cfa4f48..3703015 100644 --- a/lib/screens/attendence_screen.dart +++ b/lib/screens/attendence_screen.dart @@ -108,7 +108,7 @@ class AttendanceScreen extends StatelessWidget { builder: (context) => LoginAnimationScreen( isLogin: true, - isSuccess: true, + isSuccess: false, ), ), ); diff --git a/lib/screens/holiday_screen.dart b/lib/screens/holiday_screen.dart index 4b88207..de3643d 100644 --- a/lib/screens/holiday_screen.dart +++ b/lib/screens/holiday_screen.dart @@ -1,19 +1,93 @@ import 'package:flutter/material.dart'; +import 'package:flutter_svg/flutter_svg.dart'; class HolidayScreen extends StatelessWidget { const HolidayScreen({super.key}); @override Widget build(BuildContext context) { - return const Center( - child: Text( - 'الإجازة', - style: TextStyle( + return Directionality( + textDirection: TextDirection.rtl, + child: Stack( + children: [ + Positioned( + bottom: 40, + right: 20, + child: Column( + children: [ + _HolidayActionButton( + label: "طلب سلفة", + svgPath: "assets/images/money.svg", // placeholder + onTap: () {}, + ), + const SizedBox(height: 18), + _HolidayActionButton( + label: "طلب إجازة", + svgPath: "assets/images/plus.svg", // placeholder + onTap: () {}, + ), + ], + ), + ), + ], + ), + ); + } +} + +class _HolidayActionButton extends StatelessWidget { + final String label; + final String svgPath; + final VoidCallback onTap; + + const _HolidayActionButton({ + required this.label, + required this.svgPath, + required this.onTap, + }); + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: onTap, + child: Container( + width: 75, + height: 75, + decoration: BoxDecoration( color: Colors.white, - fontSize: 24, - fontWeight: FontWeight.bold, + shape: BoxShape.circle, + boxShadow: [ + BoxShadow( + color: const Color(0x4B00C68B), + blurRadius: 20, + offset: const Offset(0, 6), + ), + ], + ), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SvgPicture.asset( + svgPath, + width: 32, + height: 32, + fit: BoxFit.contain, // 🔥 Ensures same icon size + alignment: Alignment.center, + ), + + const SizedBox(height: 6), + + Text( + label, + style: const TextStyle( + fontSize: 14, + fontWeight: FontWeight.w600, + color: Colors.black, + ), + ), + ], ), ), ); } -} \ No newline at end of file +}