import re with open('kifi-app/lib/features/projects/presentation/projects_screen.dart', 'r') as f: content = f.read() # Remove the AppBar section app_bar_regex = r" appBar: AppBar\(\n title: const Text\('Projects \(Agency OS\)'\),\n backgroundColor: Colors\.white,\n foregroundColor: Colors\.black,\n elevation: 0,\n \),\n" content = re.sub(app_bar_regex, "", content) with open('kifi-app/lib/features/projects/presentation/projects_screen.dart', 'w') as f: f.write(content)