'Import dart file in flutter
I'm working on a flutter project and I want to import a dart file in my main file but I don't know how to do it.
I import my dart file first import 'package:splash/Categories.dart';
and I initialized it like that final Category _category = Category();
but I have this error Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports
Please how can I fix it. Thank you in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
