Closed Maksimka101 closed 1 year ago
Hi @Maksimka101 , thanks for your pull request, here are my thoughts.
_index
, there is no need to set it as public. You can just add a get method, which can avoid other people's wrong modifications.Flexible
, it will get problems with error rendering. Therefore, if you want to modify it to Flexible, please also add the solution for \n
text span.Hey @asjqkkkk, I've made index variable private and introduced a getter
Hi @Maksimka101 , currently, the part about index seems to be fine
but it's necessary to do some work with Flexible
, otherwise, problems like the following will appear
So I think you need to include your solution in the pull request as well. then don't forget to replace Text.rich
with ProxyRichText
, and I may unify the configuration of Text.rich
through ProxyRichText
in the future.
You are right. Firstly, I only wanted to make the ListNode
expandable and changed Expanded
to Flexible
by mistake. But, if you don't mind, I'll add the second fix
Hello,
Currently, inheriting from
ListNode
is not possible due to its private field_index
, which the build method relies on.Why do I want to extend
ListNode
? The motivation behind this is that it utilizes theRow
withExpanded
widgets, causing it to occupy all available horizontal space. I aim to rectify this behavior with the following code:This code addresses the issue as follows:
Flexible
instead ofExpanded
.Expanded
, sublists won't be rendered on new lines, so I've added the\n
text span before them.By the way, should I create a pull request with the above fix? Or perhaps there's an alternative solution? What are your thoughts? 🙂