17 lines
692 B
Bash
17 lines
692 B
Bash
# 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"
|