chore(ui): fix analyzer

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-06-13 17:02:02 +05:30
committed by xsahil03x
parent 07431bf75a
commit b87cd1d30f
@@ -708,7 +708,6 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
child: (widget.message.isDeleted && child: (widget.message.isDeleted &&
!isFailedState) !isFailedState)
? Container( ? Container(
// ignore: lines_longer_than_80_chars
margin: margin:
EdgeInsets.symmetric( EdgeInsets.symmetric(
horizontal: horizontal:
@@ -720,6 +719,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
: 4.0, : 4.0,
), ),
child: StreamDeletedMessage( child: StreamDeletedMessage(
// ignore: lines_longer_than_80_chars
borderRadiusGeometry: widget borderRadiusGeometry: widget
.borderRadiusGeometry, .borderRadiusGeometry,
borderSide: borderSide:
@@ -761,8 +761,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
.borderRadiusGeometry ?? .borderRadiusGeometry ??
BorderRadius.zero, BorderRadius.zero,
), ),
color: color: _backgroundColor,
_getBackgroundColor(),
child: Column( child: Column(
crossAxisAlignment: crossAxisAlignment:
CrossAxisAlignment CrossAxisAlignment
@@ -772,6 +771,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
children: <Widget>[ children: <Widget>[
if (hasQuotedMessage) if (hasQuotedMessage)
_buildQuotedMessage(), _buildQuotedMessage(),
// ignore: lines_longer_than_80_chars
if (hasNonUrlAttachments) if (hasNonUrlAttachments)
_parseAttachments(), _parseAttachments(),
if (!isGiphy) if (!isGiphy)
@@ -811,7 +811,8 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
), ),
if (showBottomRow) if (showBottomRow)
SizedBox( SizedBox(
height: context.textScaleFactor * 18.0), height: context.textScaleFactor * 18.0,
),
], ],
), ),
), ),
@@ -1374,7 +1375,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
bool get isPinned => widget.message.pinned; bool get isPinned => widget.message.pinned;
Color? _getBackgroundColor() { Color? get _backgroundColor {
if (hasQuotedMessage) { if (hasQuotedMessage) {
return widget.messageTheme.messageBackgroundColor; return widget.messageTheme.messageBackgroundColor;
} }