This commit is contained in:
Daniah Ayad Al-sultani
2025-12-03 16:54:37 +03:00
parent f6dacd9a1a
commit 0ffb5c146d
2 changed files with 82 additions and 8 deletions

View File

@@ -108,7 +108,7 @@ class AttendanceScreen extends StatelessWidget {
builder:
(context) => LoginAnimationScreen(
isLogin: true,
isSuccess: true,
isSuccess: false,
),
),
);

View File

@@ -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,
),
),
],
),
),
);
}
}
}