minor changes

This commit is contained in:
xsahil03x
2020-11-25 15:19:02 +05:30
parent 6edfbb2e98
commit d15a11b088
+2 -2
View File
@@ -8,7 +8,7 @@ class TypingIndicator extends StatelessWidget {
const TypingIndicator({ const TypingIndicator({
Key key, Key key,
this.channel, this.channel,
this.alternativeWidget = const SizedBox(), this.alternativeWidget,
this.style, this.style,
this.alignment = Alignment.centerLeft, this.alignment = Alignment.centerLeft,
}) : super(key: key); }) : super(key: key);
@@ -48,7 +48,7 @@ class TypingIndicator extends StatelessWidget {
key: Key('alternative'), key: Key('alternative'),
alignment: alignment, alignment: alignment,
child: Container( child: Container(
child: alternativeWidget, child: alternativeWidget ?? Offstage(),
), ),
), ),
); );