buildMessage method

Widget buildMessage(
  1. BuildContext context,
  2. AbstractChatMessage message
)

Implementation

Widget buildMessage(BuildContext context, AbstractChatMessage message) =>
    Pylon<AbstractChatMessage>(
        value: message,
        local: true,
        builder: (context) => Stack(
              children: [
                Visibility(
                    visible: false,
                    child: ChatMessageView(
                      key: ValueKey("spc.${message.id}"),
                    )),
                ChatMessageView(
                  key: ValueKey(message.id),
                )
                    .animate(
                      key: getMessageKey(message.id),
                      delay: 50.ms,
                    )
                    .fadeIn(
                      duration: const Duration(milliseconds: 250),
                      curve: Curves.easeOutExpo,
                    )
                    .blurXY(
                      begin: 36,
                      end: 0,
                      duration: const Duration(milliseconds: 250),
                      curve: Curves.easeOutCirc,
                    )
              ],
            ));