emoji_picker 0.0.3 emoji_picker: ^0.0.3 copied to clipboard
A Flutter package that provides an Emoji Keyboard widget.
import 'package:flutter/material.dart';
import 'package:emoji_picker/emoji_picker.dart';
void main() => runApp(MainApp());
class MainApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: "Test",
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: Text("Emoji Picker Test"),
),
body: MainPage(),
),
);
}
}
class MainPage extends StatefulWidget {
@override
MainPageState createState() => new MainPageState();
}
class MainPageState extends State<MainPage> {
@override
Widget build(BuildContext context) {
return EmojiPicker(
rows: 3,
columns: 7,
buttonMode: ButtonMode.MATERIAL,
recommendKeywords: ["racing", "horse"],
numRecommended: 10,
onEmojiSelected: (emoji, category) {
print(emoji);
},
);
}
}