Update: 2026-08-03 00:20:40

This commit is contained in:
Hamza-Ayed
2026-08-03 00:20:40 +03:00
parent c23c3c0721
commit 2b9f696372
39 changed files with 38513 additions and 38217 deletions
@@ -1,3 +1,4 @@
import 'package:siro_admin/constant/theme.dart';
import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart';
@@ -170,7 +171,7 @@ class _AddInvoicePageState extends State<AddInvoicePage> {
borderRadius: BorderRadius.circular(20),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.05),
color: Colors.black.withValues(alpha: 0.05),
blurRadius: 15,
offset: const Offset(0, 5),
),
@@ -202,7 +203,7 @@ class _AddInvoicePageState extends State<AddInvoicePage> {
Text(
'صورة الفاتورة',
style: TextStyle(
color: Colors.grey[700],
color: cs.onSurfaceVariant,
fontWeight: FontWeight.bold,
fontSize: 16,
),
@@ -221,7 +222,7 @@ class _AddInvoicePageState extends State<AddInvoicePage> {
border: Border.all(
color: _imageFile != null
? primaryColor
: Colors.grey.shade300,
: cs.onSurfaceVariant.shade300,
width: 2,
style: _imageFile != null
? BorderStyle.solid
@@ -241,7 +242,7 @@ class _AddInvoicePageState extends State<AddInvoicePage> {
Container(
padding: const EdgeInsets.all(15),
decoration: BoxDecoration(
color: primaryColor.withOpacity(0.05),
color: primaryColor.withValues(alpha: 0.05),
shape: BoxShape.circle,
),
child: Icon(Icons.add_a_photo_rounded,
@@ -251,7 +252,7 @@ class _AddInvoicePageState extends State<AddInvoicePage> {
Text(
'اضغط لرفع صورة الفاتورة',
style: TextStyle(
color: Colors.grey[500],
color: cs.onSurfaceVariant,
fontWeight: FontWeight.w500,
),
),
@@ -265,7 +266,7 @@ class _AddInvoicePageState extends State<AddInvoicePage> {
child: Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.9),
color: Colors.white.withValues(alpha: 0.9),
shape: BoxShape.circle,
),
child: Icon(Icons.edit,
@@ -296,7 +297,7 @@ class _AddInvoicePageState extends State<AddInvoicePage> {
decoration: BoxDecoration(
gradient: LinearGradient(
colors: _isLoading
? [Colors.grey, Colors.grey]
? [cs.onSurfaceVariant, cs.onSurfaceVariant]
: [primaryColor, secondaryColor],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
@@ -305,7 +306,7 @@ class _AddInvoicePageState extends State<AddInvoicePage> {
boxShadow: [
if (!_isLoading)
BoxShadow(
color: primaryColor.withOpacity(0.4),
color: primaryColor.withValues(alpha: 0.4),
blurRadius: 10,
offset: const Offset(0, 4),
),
@@ -369,16 +370,16 @@ class _AddInvoicePageState extends State<AddInvoicePage> {
decoration: InputDecoration(
labelText: label,
hintText: hint,
prefixIcon: Icon(icon, color: primaryColor.withOpacity(0.7)),
prefixIcon: Icon(icon, color: primaryColor.withValues(alpha: 0.7)),
filled: true,
fillColor: Colors.grey[50],
fillColor: cs.onSurfaceVariant,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: BorderSide.none,
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: BorderSide(color: Colors.grey.shade200),
borderSide: BorderSide(color: cs.onSurfaceVariant.shade200),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),