Skip to content
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

Question: Top alignment between content and indicator #47

Open
robertoestivill opened this issue Jan 10, 2022 · 4 comments
Open

Question: Top alignment between content and indicator #47

robertoestivill opened this issue Jan 10, 2022 · 4 comments

Comments

@robertoestivill
Copy link

robertoestivill commented Jan 10, 2022

How can I align the top of the indicator with the top of the content, when the content is longer than a single line?

Basically making sure the two red lines are aligned in the following example:

Screenshot 2022-01-10 at 11 15 04

Is there any option to accomplish this already?

Thanks

@phamconganh
Copy link

I think you can use indicatorPosition: 0 in the TimelineThemeData

@robertoestivill
Copy link
Author

I think you can use indicatorPosition: 0 in the TimelineThemeData

I think this is what I was looking for, thanks @phamconganh.

However, just adding position: 0 to my Indicator subclasses creates a different issue, by which the last item of the Timeline is not aligned horizontally anymore.

I've tried with two different Timelines and the same result.

Example 1:
Screenshot 2022-01-12 at 11 50 44

Example 2:
Screenshot 2022-01-12 at 11 47 26

Maybe I'm missing something else? Any clues?
Thank you

@ririlya94
Copy link

Have you found any solutions for this @robertoestivill ?

@robertoestivill
Copy link
Author

Have you found any solutions for this @robertoestivill ?

I have not. I stopped working on this for the time being.
I'm currently thinking on building an very simple in-house version of it, as I don't need most the functionality provided by the library.
Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants