Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The view does not fill the screen #294

Closed
Unicellular-SU opened this issue May 18, 2020 · 10 comments
Closed

The view does not fill the screen #294

Unicellular-SU opened this issue May 18, 2020 · 10 comments

Comments

@Unicellular-SU
Copy link

Screenshot_20200518_161217_com.example.example.jpg

Both my Huawei P30 PRO(android 10.0) and Samsung S8(android 8.0) have this problem

my flutter doctor:
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 11.4.1) [✓] Android Studio (version 3.6) [!] IntelliJ IDEA Ultimate Edition (version 2019.3.1) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [✓] VS Code (version 1.45.1) [✓] Connected device (1 available) ! Doctor found issues in 1 category.

@MilosKarakas
Copy link

I have a similar problem with Galaxy Note 10+, everything seems to be scaled down. I haven't tested on other Samsung devices. We use the package to render the content and the comment text.

image
image

Basically it should look like this.

image

@mangeshn
Copy link

I have similar Problem with my Samsung A50s, it takes only half of the screen width for content rendering and font also appears very small. But same looks fine on my Nexus 5 device. Any solution to get it resolved?

@chemistryx
Copy link

same with my galaxy s8

@MilosKarakas
Copy link

@Sub6Resources any idea what could be causing this behaviour? Is there a way for us to assist you? Thanks.

@sylvamu
Copy link

sylvamu commented May 19, 2020

Hi ! It looks like it is the same issue as "Ver 1.0.0 : FontSize(this.size) - strange behavior" #289 when you make the font smaller in your phone settings. Can you try to set your fontsize to normal ?

@ryan-berger
Copy link
Collaborator

@MilosKarakas I'm the new maintainer for the time being, and my guess is that it also has to do with another sizing issue as we aren't calculating the size, and shinkWrap is not working correctly. If you want to debug it and try to figure out why it is not taking up the entire width, that would be extremely helpful, and I should be able to review your code and merge it if things are working.

@MilosKarakas
Copy link

@ryan-berger I'll have a look, in case I find a way to fix it I will post it right away.

@MilosKarakas
Copy link

Add this to your MaterialApp

builder: (BuildContext context, Widget child) => MediaQuery( data: MediaQuery.of(context).copyWith(textScaleFactor: 1), child: child, ),

It should fix the issue by overriding the textScale factor set by the system.

@HugoHeneault
Copy link

HugoHeneault commented Jun 15, 2020

Is overriding whole app textScale a real solution for accessibility?

@erickok
Copy link
Collaborator

erickok commented Feb 8, 2021

This was fixed via #333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants