i am working on a flutter project. I am creating an app that could run on both mobile and web simultenously. for platform checking i used kIsWeb constant which is working fine on Web but when i run the app on Mobile (android) then it says that some of widgets are imported for both packages like in this example.
Text' is imported from both 'package:universal_html/src/html.dart' and 'package:flutter/src/widgets/text.dart'.
i google it and i found a package universal_html but when i used this imprt in my project this gave mein the same error.
is there any thing that i am missing from my code ?
if yes. then highlight my mistake and guid me in this regard.
 
                        
This happened because you export
Textin bothuniversal_htmlandflutterpackage, I recommend use prefiex onuniversal_htmllike this:and use it like this for example: