Skip to content

Text container have extra space #52880

Closed
Closed

Description

@Filaind

We have issues with text container.
In specific text, container not contain real text size.

photo_2020-03-19_15-10-42

Activity

  1. TahaTesser commented on Mar 19, 2020

    @TahaTesser
    Contributor

    Hi @Filaind
    That's just new line cuz that whole text couldn't fit into one line.

    You can reduce your text width by wrapping in a container

    Code Sample

    import 'package:flutter/material.dart';
    
    void main() => runApp(MyApp());
    
    class MyApp extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          title: 'Material App',
          home: Scaffold(
            appBar: AppBar(
              title: Text('Material App Bar'),
            ),
            body: Center(
              child: Container(
                width: 125,
                child: Text(
                  'lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum ',
                ),
              ),
            ),
          ),
        );
      }
    }
    

    Thankk you

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    in triagePresently being triaged by the triage team
    on Mar 19, 2020
  3. TahaTesser commented on Apr 9, 2020

    @TahaTesser
    Contributor

    Hi @Filaind
    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 anymore information for us; we will reopen it right away!
    Thanks for your contribution.

  4. lock commented on Apr 25, 2020

    @lock

    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.

  5. locked and limited conversation to collaborators on Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions