-
-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 The name 'Colors' is defined in the libraries 'package:fluent_ui/src/styles/color.dart (via package:fluent_ui/fluent_ui.dart)' and 'package:flutter/src/material/colors.dart (via package:flutter/material.dart)'. #51
Comments
you're trying to import both fluent and material libraries. Please import only one. If you need to import both, use: import 'package:flutter/material.dart' as material;
import 'package: fluent_ui/fluent_ui.dart'; |
Do you still see this issue? |
To use scaffold you'll have to do: To use any api, widget or Classes defined in the material Libraries you'll have to add a You can try hiding the
This will hide the Colors api from being exposed in the import. You can also use this same method to hide it from the fluent_ui package as well. |
Yes! I don't see why to use both libraries together, anyways. Can this issue be closed? |
Yes, you can close it. |
thanks :) |
Flutter Web:
I want to use this package, but I can't use it because of the following problem. How can I solve this?
The text was updated successfully, but these errors were encountered: