check for null content in message translation card
This commit is contained in:
parent
7e9855dcc1
commit
5d190cc51e
1 changed files with 12 additions and 8 deletions
|
|
@ -144,14 +144,18 @@ class MessageTranslationCardState extends State<MessageTranslationCard> {
|
|||
child: Column(
|
||||
children: [
|
||||
widget.selection != null
|
||||
? Text(
|
||||
selectionTranslation!,
|
||||
style: BotStyle.text(context),
|
||||
)
|
||||
: Text(
|
||||
repEvent!.text,
|
||||
style: BotStyle.text(context),
|
||||
),
|
||||
? selectionTranslation != null
|
||||
? Text(
|
||||
selectionTranslation!,
|
||||
style: BotStyle.text(context),
|
||||
)
|
||||
: const ToolbarContentLoadingIndicator()
|
||||
: repEvent != null
|
||||
? Text(
|
||||
repEvent!.text,
|
||||
style: BotStyle.text(context),
|
||||
)
|
||||
: const ToolbarContentLoadingIndicator(),
|
||||
if (notGoingToTranslate && widget.selection == null)
|
||||
InlineTooltip(
|
||||
instructionsEnum: InstructionsEnum.l1Translation,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue