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

Text overflow on Samsung only #18842

Closed
libegor opened this issue Jun 26, 2018 · 4 comments
Closed

Text overflow on Samsung only #18842

libegor opened this issue Jun 26, 2018 · 4 comments
Labels
a: typography Text rendering, possibly libtxt e: device-specific Only manifests on certain devices engine flutter/engine repository. See also e: labels. platform-android Android applications specifically waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@libegor
Copy link

libegor commented Jun 26, 2018

Please help.
My code work on virtual Google Nexus 5X, but on Samsung Galaxy A3 class widget Text overflow.

return new Container(
      color: Colors.black12,
      height: 100.0,
      child: new Row(children: <Widget>[
        new Expanded(child: new Container(padding: new EdgeInsets.all(5.0),child: new Column(children: <Widget>[
          new Text(_title, style: new TextStyle(fontSize: 20.0), overflow: TextOverflow.ellipsis,),
           new Expanded(child: new Text(_text, textAlign: TextAlign.justify,))
        ],))),
        new NewsBoxFavourit(_num, _like)
      ],
      ),
    );

2018-06-26 18-19-10

new Expanded(flex:0,child: new Text(_text, textAlign: TextAlign.justify,))

2018-06-26 18-18-51
on virtual Google Nexus 5X
2018-06-26_19-54-29

Full code here: main.dart.txt

Console:

Launching lib\main.dart on SM A310F in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
I/FlutterActivityDelegate(25774): onResume setting current activity to this
Syncing files to device SM A310F...
I/Choreographer(25774): Skipped 190 frames!  The application may be doing too much work on its main thread.
D/ViewRootImpl@b26f17a[MainActivity](25774): Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -753403904} surfaceGenerationChanged=false
D/SurfaceView(25774): Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={Surface(name=null)/@0x74c8588 isValid=true -740839424}
D/ViewRootImpl@b26f17a[MainActivity](25774): MSG_RESIZED_REPORT: frame=Rect(0, 0 - 720, 1280) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
D/ViewRootImpl@b26f17a[MainActivity](25774): MSG_WINDOW_FOCUS_CHANGED 1
D/ViewRootImpl@b26f17a[MainActivity](25774): mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -753403904}
V/InputMethodManager(25774): Starting input: tba=android.view.inputmethod.EditorInfo@b747b21 nm : su.flutter.flutterapp1 ic=null
I/InputMethodManager(25774): [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport(25774): Input channel constructed: fd=95
V/InputMethodManager(25774): Starting input: tba=android.view.inputmethod.EditorInfo@aa2ab46 nm : su.flutter.flutterapp1 ic=null

Flutter doctor:

D:\flutter\flutter_windows_v0.2.8-beta\flutter\bin\flutter.bat --no-color doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.112], locale ru-RU)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] Connected devices (2 available)

• No issues found!
Process finished with exit code 0
@zoechi zoechi added e: device-specific Only manifests on certain devices platform-android Android applications specifically a: typography Text rendering, possibly libtxt labels Jun 26, 2018
@zoechi zoechi added the engine flutter/engine repository. See also e: labels. label Dec 4, 2018
@zoechi
Copy link
Contributor

zoechi commented Dec 4, 2018

Sorry for not coming back to this earlier.
Are you still seeing this with a recent Flutter version?

@zoechi zoechi added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 4, 2018
@jonahwilliams
Copy link
Member

If the phones have different dimensions/text and the text is not contained within a scrollable it makes sense that it might overflow at different breakpoints. Consider wrapping the widget within a SingleChildScrollView.

@zoechi
Copy link
Contributor

zoechi commented Dec 23, 2018

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

@zoechi zoechi closed this as completed Dec 23, 2018
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: typography Text rendering, possibly libtxt e: device-specific Only manifests on certain devices engine flutter/engine repository. See also e: labels. platform-android Android applications specifically waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

3 participants