Some ViewModels import Flutter UI libraries, increasing coupling with the UI layer.
Remove Flutter imports from ViewModels and rely on services/interfaces.
Before:
import 'package:flutter/material.dart';
class SomeViewModel extends ChangeNotifier { /* ... */ }
After:
// No Flutter UI imports in ViewModel files.
import 'package:talawa/services/navigation_service.dart';
class SomeViewModel extends ChangeNotifier {
final NavigationService _nav = locator<NavigationService>();
}
See finding description below.
Provide estimate in issue comments if not listed above.
If changes would touch more than 10 files, split into multiple issues/PRs (Part 1/2, Part 2/2) and link them.