first commit
This commit is contained in:
16
fix_const.sh
Normal file
16
fix_const.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
# Font Optimization - Quick Fix Script
|
||||
|
||||
# This script removes 'const' from Text widgets that use AppTextStyles
|
||||
# because Google Fonts returns non-const TextStyle objects
|
||||
|
||||
cd f:\cursor-auto\focusBuddy\lib\screens
|
||||
|
||||
# Fix remaining files with sed-like pattern (pseudo code)
|
||||
# const Text(...style: AppTextStyles...) -> Text(...style: AppTextStyles...)
|
||||
# const Padding(...child: Text(...style: AppTextStyles...)) -> Padding(...child: Text(...style: AppTextStyles...))
|
||||
|
||||
echo "Manual fixes needed for:"
|
||||
echo "- settings_screen.dart lines 63, 84, 100, 251, 276"
|
||||
echo "- complete_screen.dart line 46"
|
||||
echo ""
|
||||
echo "Quick fix: Remove 'const' keyword before Text/Padding widgets that use AppTextStyles"
|
||||
Reference in New Issue
Block a user