You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my limited experience, I sometimes wished I could just add a .scroll to the end of a widget definition. Wrapping a widget in a scroll isn't too annoying but it does, at least to me, make things a bit more difficult to read. The function definition would look like this
// I don't know if this definition is the correct one, specifically for the return typepubfnscroll(self,direction:ScrollDirection) -> Scroll<T,Self>{// within here there can be some matching on the `ScrollDirection` which would // create the Scroll appropriately}pubenumScrollDirection{Horizontal,Vertical,Both,
Would this sort of change be welcome in WidgetExt?
The text was updated successfully, but these errors were encountered:
I don't even think we need the direction argument; once you get the Scroll widget back, you can call vertical() or horizontal() on it as you wish, like:
From my limited experience, I sometimes wished I could just add a
.scroll
to the end of a widget definition. Wrapping a widget in a scroll isn't too annoying but it does, at least to me, make things a bit more difficult to read. The function definition would look like thisWould this sort of change be welcome in
WidgetExt
?The text was updated successfully, but these errors were encountered: