Error: 'Router' is imported from both 'package:flutter/src/widgets/router.dart' and 'package:flutter_modular/src/routers/router.dart'. import 'package:flutter_modular/flutter_modular.dart'; code example
Example: flutter Error: 'Router' is imported from both
For anyone else running into this issue, I changed my flutter/material.dart import to this:
import 'package:flutter/material.dart' hide Router;