dksfunnytext 0.0.1+2
dksfunnytext: ^0.0.1+2 copied to clipboard
A Flutter package for both android and iOS which convert text to emoji.
This Package can convert the text in emoji you can use this in your app.
Features #
- This can convert your simple text into emoji. You can also customize this according to your emoji set.
Getting started #
Example: Add the module to your project pubspec.yaml:
...
dependencies:
...
dksfunnytext: ^0.0.1
...
And install it using flutter packages get on your project folder. After that, just import the module and use it:
import 'package:dksfunnytext/dksfunnytext.dart';
Usage #
Simple text(bool) simpleText = true #
DksFunnyText(
simpleText: true,
replaceSome: true,
text: "Flutter DksFunnyText",
style: TextStyle(color: Colors.red),
),
Text-Emoji(bool) simpleText = false #
DksFunnyText(
simpleText: false,
replaceSome: true,
text: "Flutter DksFunnyText",
style: TextStyle(color: Colors.red),
),
Default emoji(bool) replaceSome = false #
DksFunnyText(
simpleText: false,
replaceSome: false,
text: "Flutter DksFunnyText",
style: TextStyle(color: Colors.red),
),
Customize emoji(bool) replaceSome = true #
Note: If replaseSome is true then emoji Map<String,dynamic> required other wise it pick up default emojies.
Map<String, dynamic> emoji = {"A": '😇', "C": '😄'};
DksFunnyText(
simpleText: false,
replaceSome: true,
emoji: emoji,
text: "Flutter DksFunnyText",
style: TextStyle(color: Colors.red),
),