JeffG05 / emoji_picker

A Flutter package that provides an Emoji Keyboard widget
https://pub.dev/packages/emoji_picker
BSD 2-Clause "Simplified" License
84 stars 91 forks source link

Recent Emojis aren't displaying #49

Open Dharmik-Dalwadi opened 3 years ago

Dharmik-Dalwadi commented 3 years ago

Hi, Recent Emojis aren't displaying, is there any way to display the recent emojis or remove the recent emojis section.

I am Using Flutter Version: 2.0.6 emoji_picker: ^0.1.0

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);
      },
    );
  }
}