diff --git a/lib/auto_scroll_text.dart b/lib/auto_scroll_text.dart index e4408f8..67fd89a 100644 --- a/lib/auto_scroll_text.dart +++ b/lib/auto_scroll_text.dart @@ -304,10 +304,13 @@ class _AutoScrollTextState extends State { style: widget.style, textAlign: widget.textAlign, ) - : Text( - _endlessText ?? _text, - style: widget.style, - textAlign: widget.textAlign, + : Padding( + padding: widget.padding, + child: Text( + _endlessText ?? _text, + style: widget.style, + textAlign: widget.textAlign, + ), ), ), ),