twemoji 0.1.0 twemoji: ^0.1.0 copied to clipboard
Twitter Emojis for Flutter
import 'package:flutter/material.dart';
import 'package:twemoji/twemoji.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({
Key? key,
}) : super(key: key);
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Flutter Demo Home Page'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
RichText(
text: TwemojiTextSpan(
text: 'Text ππππΏπ§π₯π₯¨π₯ππ₯π₯',
style: Theme.of(context).textTheme.headline6,
),
),
],
),
),
);
}
}