From a03bd57a5f57347b5227d53e65aee5b737913ca8 Mon Sep 17 00:00:00 2001 From: ChuangWei Ma <39935368+chungwwei@users.noreply.github.com> Date: Tue, 17 Jan 2023 22:54:18 -0500 Subject: [PATCH] feat: skeleton shoutout widget (#887) --- .../chat_history/twitch/shoutout_event.dart | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lib/components/chat_history/twitch/shoutout_event.dart diff --git a/lib/components/chat_history/twitch/shoutout_event.dart b/lib/components/chat_history/twitch/shoutout_event.dart new file mode 100644 index 000000000..9089d0546 --- /dev/null +++ b/lib/components/chat_history/twitch/shoutout_event.dart @@ -0,0 +1,31 @@ +import 'package:flutter/material.dart'; +import 'package:rtchat/components/chat_history/decorated_event.dart'; + +class TwitchShoutoutEventWidget extends StatelessWidget { + const TwitchShoutoutEventWidget({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return DecoratedEventWidget.icon( + icon: Icons.auto_awesome, + child: Builder(builder: (context) { + return Text.rich( + TextSpan( + children: [ + TextSpan( + text: "Shoutout was given to ", + style: Theme.of(context).textTheme.titleSmall), + TextSpan( + text: "Rippyae", + style: Theme.of(context) + .textTheme + .titleSmall! + .copyWith(color: Colors.purpleAccent), + ), + ], + ), + ); + }), + ); + } +}