bug :
This commit is contained in:
@@ -108,7 +108,7 @@ class AttendanceScreen extends StatelessWidget {
|
|||||||
builder:
|
builder:
|
||||||
(context) => LoginAnimationScreen(
|
(context) => LoginAnimationScreen(
|
||||||
isLogin: true,
|
isLogin: true,
|
||||||
isSuccess: true,
|
isSuccess: false,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,17 +1,91 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
|
|
||||||
class HolidayScreen extends StatelessWidget {
|
class HolidayScreen extends StatelessWidget {
|
||||||
const HolidayScreen({super.key});
|
const HolidayScreen({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return const Center(
|
return Directionality(
|
||||||
child: Text(
|
textDirection: TextDirection.rtl,
|
||||||
'الإجازة',
|
child: Stack(
|
||||||
style: TextStyle(
|
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,
|
color: Colors.white,
|
||||||
fontSize: 24,
|
shape: BoxShape.circle,
|
||||||
fontWeight: FontWeight.bold,
|
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,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user