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

Not able to cut long label text in SpeedDialChild #326

Open
srappose opened this issue Feb 12, 2024 · 1 comment
Open

Not able to cut long label text in SpeedDialChild #326

srappose opened this issue Feb 12, 2024 · 1 comment

Comments

@srappose
Copy link

Hi, I am trying to cut too long label text on a SpeedDialChild but I can't find no way to do it.
This is an excerpt of my source code:

    SpeedDialChild(      
      child: Icon(Icons.system_update_alt, color: Colors.white),
      backgroundColor: Colors.blue,
      onTap: () async {
		//...
      },
      labelWidget: Expanded(
        child: Row(
          children: [
            Padding(
              padding: const EdgeInsets.only(right: 16.0),
              child: Container(
                padding: EdgeInsets.symmetric(vertical: 6, horizontal: 8),
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(6),
                  color: Colors.blue,
                ),
                child: Text(
                  "Text too much long that I am not able to cut",
                  overflow: TextOverflow.ellipsis,
                  style: TextStyle(
                    backgroundColor: Colors.blue,
                    fontWeight: FontWeight.w500,
                    color: Colors.white,
                    overflow: TextOverflow.ellipsis,
                  ),
                ),
              ),
            ),
          ],
        ),
      ),
)

and below the wrong result that I get:

image

Thank you in advance for your support

@srappose
Copy link
Author

Hi, has anyone had this problem yet?

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

1 participant