dksfunnytext 0.0.1+1 dksfunnytext: ^0.0.1+1 copied to clipboard
A Flutter package for both android and iOS which convert text to emoji.
import 'package:dksfunnytext/dksfunnytext.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MaterialApp(
debugShowCheckedModeBanner: true,
title: 'Carousel Pro',
home: FunnyText(),
));
}
class FunnyText extends StatefulWidget {
const FunnyText({Key? key});
@override
State<FunnyText> createState() => _FunnyTextState();
}
class _FunnyTextState extends State<FunnyText> {
Map<String, dynamic> emoji = {"A": '😇', "C": '😄'};
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Center(
child: DksFunnyText(
simpleText: false,
replaceSome: true,
emoji: emoji,
text: "ABCCB dgbhj dghjQQQkd DIDIJKDK AA BBA CBBA",
style: TextStyle(color: Colors.red),
),
)),
);
}
}