Skip to content

Commit

Permalink
Merge pull request #2 from OlehMysak/update-to-flutter-3.13.9
Browse files Browse the repository at this point in the history
some charges for Utils.sendText
  • Loading branch information
OlehMysak authored Nov 21, 2023
2 parents 0a0d45f + 5d2af0f commit 62b1769
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions lib/src/core/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ class Utils {
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi feugiat quis massa at tincidunt. Proin lacus sapien, ullamcorper sed diam a, varius ornare ligula. Maecenas vitae velit ac orci lacinia convallis in vel nisl. Mauris lacinia, nisi ut porttitor finibus, metus est mattis metus, in laoreet metus lacus nec risus.';

static Timer sendText(
String text,
StreamedValue stream,
int? duration,
int milliseconds,
) {
{required String text,
required StreamedValue stream,
required int milliseconds,
int? duration}) {
int index = 0;
late Timer timer;

Expand Down
8 changes: 4 additions & 4 deletions lib/src/scrolling_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class _ScrollingTextState extends State<ScrollingText> {

void startShowingText(String str) {
timer = Utils.sendText(
str,
textStream,
null,
widget.scrollingDuration,
text: str,
stream: textStream,
duration: null,
milliseconds: widget.scrollingDuration,
);
}

Expand Down

0 comments on commit 62b1769

Please sign in to comment.