simc / auto_size_text

Flutter widget that automatically resizes text to fit perfectly within its bounds.
https://pub.dev/packages/auto_size_text
MIT License
2.06k stars 240 forks source link

Adding customizable background color to the text #79

Open Letalus opened 3 years ago

Letalus commented 3 years ago

Hello, I would like to add a new customizable background to the auto_size_text widget. The background should be customizable in following ways.

  1. It should get a padding between the background border and the text
  2. It should get a border radius for the background edges.

Currently there is no flutter solution for it. Therefore I started writing a plugin, which does support this feature and extends not the normal text but your auto_size_text. Currently the new feature is under development. Following is the repo name: https://github.com/Letalus/auto_size_text_background

Do you think we can merge this package once its stable enough?

Here is an image from what I mean Screenshot 2020-12-21 at 15 37 21

ozexpert commented 1 year ago

@Letalus have you created PR? I was looking for this feature but wasn't sure how i could use it.