build method

  1. @override
dynamic build(
  1. dynamic context
)

Implementation

@override
Widget build(BuildContext context) {
  return GestureDetector(
    onTap: () => showEncryptionInfoBottomSheet(context: context),
    child: Container(
      padding: const EdgeInsets.all(18),
      child: Text.rich(
        TextSpan(
          children: [
            WidgetSpan(
              child: Padding(
                padding: const EdgeInsets.only(right: 5),
                child: Icon(
                  Atlas.block_shield_thin,
                  size: Theme.of(context).textTheme.labelSmall?.fontSize,
                  color: Theme.of(context).textTheme.labelSmall?.color,
                ),
              ),
            ),
            TextSpan(
              text: L10n.of(context).encryptedChatMessage,
              style: Theme.of(context).textTheme.labelSmall!.copyWith(
                    fontStyle: FontStyle.italic,
                  ),
            ),
          ],
        ),
      ),
    ),
  );
}