The name 'Router' is defined in the libraries 'package:flutter/src/widgets/router.dart' and 'package:flutter_modular/src/routers/router.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;