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({
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(),
),
),
);