-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
support custom widget for titles #183
Comments
@imaNNeoFighT Is there any known workaround on how to display custom widget or at least image as title? I've got a chart which display mood changes over time and the titles are not text-based unfortunately - these are custom widgets, but could workaround it with some dummy images if that's somehow possible. |
We don't have any built-in solution for this, |
Some samples from #215: |
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Allow to return a Widget in SideTitles.getTitles instead of a `String`. For example, you can pass an Icon widget as a title, #183.
Heeey guys. What's up? I tried to implement two samples. check them out: |
support custom widget for titles by returning Widget in
getTitles
Maybe we can use
WidgetSpan
in place ofTextSpan
.https://api.flutter.dev/flutter/painting/InlineSpan-class.html
old:
new:
The text was updated successfully, but these errors were encountered: