Skip to content

Commit

Permalink
feat: skeleton shoutout widget (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
chungwwei authored Jan 18, 2023
1 parent 5fc8827 commit a03bd57
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions lib/components/chat_history/twitch/shoutout_event.dart
Original file line number Diff line number Diff line change
@@ -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),
),
],
),
);
}),
);
}
}

0 comments on commit a03bd57

Please sign in to comment.