clragon / e1547

A sophisticated e621 browser
https://e1547.clynamic.net/
GNU General Public License v3.0
209 stars 16 forks source link

Desktop support #55

Open clragon opened 2 years ago

clragon commented 2 years ago

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.

clragon commented 2 years ago

Some features would be absent on the desktop version.

Of note are:

clragon commented 2 years ago

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.

clragon commented 2 years ago

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.

clragon commented 2 years ago

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.

clragon commented 2 years ago

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.

fishylunar commented 1 year ago

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.

Screenshot 2023-02-03 at 16 00 53