StepView icon indicating copy to clipboard operation
StepView copied to clipboard

vertical distribution

Open Ronadlo7 opened this issue 5 years ago • 5 comments

this is a cool library, How to set the vertical distribution? thank you

Ronadlo7 avatar Mar 26 '19 09:03 Ronadlo7

This is not supported yet. Maybe in the near future if demand is enough.

shuhart avatar Apr 03 '19 12:04 shuhart

yes i would also like it to have a vertical distribution and can you tell that can i add custom step numbers on the steps?

Khizzar-Synergy avatar May 29 '19 06:05 Khizzar-Synergy

Yes, I also want it vertical.

pratikbutani avatar Jun 07 '19 12:06 pratikbutani

Yes, I also want it vertical support. Are you developing this feature recently? if not yet, I hope to contribute some code if you permit. I am studying your code these days. And you can tell me where need to be careful. For example:

  • how to show the step text under vertical mode. Put these text to right of circle? then how to measure the width of these text ? set a fixed value(twice as circle's diameter ) ?

nicklezheng avatar Jun 14 '19 05:06 nicklezheng

Yes, that would be faster than waiting for me. As for your questions I have following suggestions based on official material guidelines https://material.io/archive/guidelines/components/steppers.html#steppers-types-of-steppers:

  • Place a text on the right of a circle.
  • To measure and draw the multiline text you have to use StaticLayout. You can find an example in my code.
  • Do not constraint the width of text. Just draw it in multilines considering a free space of the view itself.

shuhart avatar Jun 16 '19 10:06 shuhart