94 lines
2.3 KiB
Dart
94 lines
2.3 KiB
Dart
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 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,
|
|
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,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|