From d15a11b0880e8e4a0d08bd3456a3f10f48fca33c Mon Sep 17 00:00:00 2001 From: xsahil03x Date: Wed, 25 Nov 2020 15:19:02 +0530 Subject: [PATCH] minor changes --- lib/src/typing_indicator.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/typing_indicator.dart b/lib/src/typing_indicator.dart index 69a16b98..3f80ac9c 100644 --- a/lib/src/typing_indicator.dart +++ b/lib/src/typing_indicator.dart @@ -8,7 +8,7 @@ class TypingIndicator extends StatelessWidget { const TypingIndicator({ Key key, this.channel, - this.alternativeWidget = const SizedBox(), + this.alternativeWidget, this.style, this.alignment = Alignment.centerLeft, }) : super(key: key); @@ -48,7 +48,7 @@ class TypingIndicator extends StatelessWidget { key: Key('alternative'), alignment: alignment, child: Container( - child: alternativeWidget, + child: alternativeWidget ?? Offstage(), ), ), );