e1547
e1547 copied to clipboard
Desktop support
The app could support desktop, (windows, macos, linux) in a reasonable capacity.
To do so, we would need to specify new layouts for desktop, and perhaps helper widgets that confine the width of certain elements to a more reasonable size.
Some features would be absent on the desktop version.
Of note are:
- video support
- notifications
32120 is an upstream flutter issue about desktop scrolling behaviour.
The scrolling on desktop and web feels horrible. Until said issue is resolved, desktop implementations are on hold.
an idea for a widget that helps with desktop layouts; A LimitedWidthWidget that accepts a size it will snap to and a tolerance of pixels in which range it will ignore the snap. It can contain an AnimatedSize widget which will make the transition more pleasent. The width inside it can be determined by a layoutbuilder.
It would be possible to have a parent widget of the LimitedWidthWidget, for example called LimitedWidthScope, which does not constrain the child but instead simply provides the amount of space on either side to a builder.
This would be useful for listviews, which can then use this number as horizontal padding and still provide scrolling in the empty space.
if I was willing to wrap every single scrollview in another widget, this code: https://gitlab.com/dezso15/smoothscrollweb/-/blob/master/smooth_scroll_web/lib/smooth_scroll_web.dart plus an inherited widget that makes the scrollview below it have neverscrollablescrollphysics could make desktop scrolling smooth.
however, it would probably be more feasible to just wait until smooth scrolling is implemented in the framework.
Installing the iOS version on a Apple Silicon Mac works great, Been messing around with it for a little, and haven't found any issues at all.