Skip to content

bug: Softwrap is not effective #6

@rhandy-mathflow

Description

@rhandy-mathflow

🐞 Bug

First, thank you for this package :)

Description

Softwrap is not effective for a RichText in a Row

To Reproduce

Steps to reproduce the behavior:

  1. Add ThisThis like this:
        TypeThis(
            string: 'This is my super text and it is too long for the mobile screen width',
          ),
  1. See "A RenderFlex overflowed..." exception

Expected behavior

Have an effective softWrap

Operating System:
Android emulator
Android 14.0 (API 34)

Flutter 3.16.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 41456452f2 (7 weeks ago) • 2024-01-25 10:06:23 -0800
Engine • revision f40e976bed
Tools • Dart 3.2.6 • DevTools 2.28.5

Solution

Use an Expanded widget around the RichText inside the Row

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions