feat : persian calendar and date picker

This commit is contained in:
2025-04-27 09:39:58 +03:30
parent c10ddaf0d5
commit b77e4e9095
10 changed files with 61 additions and 12 deletions

17
tools/copyAssets.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
SOURCE_FILE="lib/presentation/common/assets.dart"
TARGET_DIR="packages/core/lib/presentation/common/assets.dart"
echo "--- Starting File Operations ---"
echo " 💀 Attempting to delete '$FILE_PATH_TO_DELETE'..."
rm -fv "$FILE_PATH_TO_DELETE"
echo "✅ Deletion step complete (file removed if it existed)."
echo "Attempting to copy source(s) to '$TARGET_DIR'..."

1
tools/runner.sh Normal file
View File

@@ -0,0 +1 @@
dart run build_runner build --delete-conflicting-outputs

33
tools/vecGeneratoe.sh Normal file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
# Directory to read files from
sourcePath="assets/icons"
targetPath="assets/vec"
if [ ! -e "$targetPath" ]; then
echo "📁 Directory does not exist. Creating: $targetPath"
mkdir -p "$targetPath"
fi
# Loop and delete old vec file
for file in "$targetPath"/*
do
if [ -f "$file" ]; then
echo "Delete old ===> $file"
rm "$file"
fi
done
# Loop through all files in the directory
for file in "$sourcePath"/*
do
if [ -f "$file" ]; then
echo "Generate Vec file ===> $file"
fileName=$(basename -- "$file")
echo "Generate Vec file ===> $fileName"
dart run vector_graphics_compiler -i "$file" -o "$targetPath/$fileName.vec"
git add .
fi
done