Flutter Emojies 😊
A simple and easy-to-use Flutter package that provides quick access to commonly used emojis in your Flutter applications.
Installation
Add this to your package's pubspec.yaml file:
dependencies:
flutter_emojies: ^1.0.0
Then run:
flutter pub get
Usage
Import the package in your Dart file:
import 'package:flutter_emojies/flutter_emojies.dart';
Basic Usage
Use predefined emojis:
import 'package:flutter/material.dart';
import 'package:flutter_emojies/flutter_emojies.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Flutter Emojies Example'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('Happy: ${FlutterEmojies.happy}', style: TextStyle(fontSize: 24)),
Text('Sad: ${FlutterEmojies.sad}', style: TextStyle(fontSize: 24)),
Text('Angry: ${FlutterEmojies.angry}', style: TextStyle(fontSize: 24)),
Text('Love: ${FlutterEmojies.love}', style: TextStyle(fontSize: 24)),
],
),
),
),
);
}
}
Custom Emojis
Use custom emojis:
Text('Custom: ${FlutterEmojies.custom("🎉")}', style: TextStyle(fontSize: 24));
Available Emojis
FlutterEmojies.happy- 😊FlutterEmojies.sad- 😢FlutterEmojies.angry- 😡FlutterEmojies.love- ❤️FlutterEmojies.custom(emoji)- Use any emoji
Additional Information
Contributing
Contributions are welcome! If you find a bug or want to add a feature, please open an issue or submit a pull request on GitHub.
Issues
If you encounter any issues, please report them on the issue tracker.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Created by Imesha Dilshani
Email: imesha.contact@gmail.com
Support
If you like this package, please give it a ⭐ on GitHub!