2

I have the flutter code to display the showcase or highlights using https://pub.dev/packages/showcaseview/example

I want to show a long description which is 3 lines, is this possible? now when my description is long it will show 1 line

Showcase(
                              key: _one,
                              description: 'I WANT ADD LONG DESCRIPTION HERE,I WANT ADD LONG DESCRIPTION HERE, I WANT ADD LONG DESCRIPTION HERE,  ',
                              child: Icon(
                                Icons.menu,
                                color: Colors.black45,
                              ),
                            ),
Rohmatul Laily
  • 371
  • 3
  • 15

1 Answers1

1

Simply add \n in your text. Something like:

'I WANT ADD LONG DESCRIPTION HERE,\nI WANT ADD LONG DESCRIPTION HERE,\nI WANT ADD LONG DESCRIPTION HERE,  ',

Result:
enter image description here

Bach
  • 2,928
  • 1
  • 6
  • 16
  • if I add \ n, Can the box description be adjusted in size? because the width fills the screen, it should appear in the middle – Rohmatul Laily Mar 26 '21 at 07:39
  • @RohmatulLaily As per the source code of `showcaseview`, I'm seeing they align the text to `center` if the title is not `null`. The size is adjusted to fit the content as well – Bach Mar 26 '21 at 07:43