Non-blocking! Class named Text in this project #693
ivofernandes
started this conversation in
General
Replies: 2 comments
-
Agree, this is a bit weird. For now I imported material twice,
and then use |
Beta Was this translation helpful? Give feedback.
0 replies
-
how about import 'package:flutter_quill/flutter_quill.dart' hide Text; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My issue is about [Mobile]
I have tried running
example
directory successfully before creating an issue here.Using the version 4.0.5 of this package I run into the error:
Error: 'Text' is imported from both 'package:flutter/src/widgets/text.dart' and 'package:flutter_quill/src/models/documents/nodes/leaf.dart'.
Text('Font size', style: Theme.of(context).textTheme.headline6),
^^^^
The problem probably is the naming of this class that is the same of the Text Widget of flutter, probably there is an easy workaround as is something with imports, but
https://github.com/singerdmx/flutter-quill/blob/master/lib/src/models/documents/nodes/leaf.dart
To solve the problem we can always use the material Text in another file/widget to avoid the problem in the imports
Beta Was this translation helpful? Give feedback.
All reactions