Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.dartambiguous_import
By Alfonso Koepp at Oct 13 2020