thunder-app / thunder

Thunder - An open-source cross-platform Lemmy client for iOS and Android built with Flutter
https://thunderapp.dev
GNU Affero General Public License v3.0
784 stars 68 forks source link

Auto-switch to and from tablet mode for foldables #1560

Open kaibagley opened 1 month ago

kaibagley commented 1 month ago

Is Your Feature Request Related to a Problem?

No response

Feature Description

Hi everyone,

I'd love if the app automatically switches on and off tablet mode for a foldable device (in my case Pixel 9 Pro Fold) when using the front screen and switching to and from the main screen

When on, the UI shows 2 squished columns in the front screen of the phone, and when off it looks much too wide on the main screen.

Alternative Solutions

No response

Additional Context

No response

hjiangsu commented 4 weeks ago

Thanks for the feedback! Support for foldables right now is quite minimal, but this is something that I would like to improve on i the future (in addition to general tablet optimizations)

kaibagley commented 4 weeks ago

Awesome!

I might say that I like how Infinity for reddit displays a post in tablet mode: 2 columns, left column is the post itself, and right column is comments. But that should probably be another feature request/issue. They have auto-switching for my foldable so maybe there's some code in there? I'll have a look later, but it is Java rather than Dart/Flutter...

Thanks for the fantastic app!