15 lines
623 B
Python
15 lines
623 B
Python
with open('kifi-app/lib/features/dashboard/presentation/dashboard_screen.dart', 'r') as f:
|
|
content = f.read()
|
|
|
|
imports_to_add = """
|
|
import '../../projects/presentation/projects_screen.dart';
|
|
import '../../projects/providers/project_mode_provider.dart';
|
|
"""
|
|
|
|
if "import '../../projects/presentation/projects_screen.dart';" not in content:
|
|
content = content.replace("import 'package:flutter/material.dart';", "import 'package:flutter/material.dart';" + imports_to_add)
|
|
|
|
with open('kifi-app/lib/features/dashboard/presentation/dashboard_screen.dart', 'w') as f:
|
|
f.write(content)
|
|
print("Dashboard imports patched")
|