flutter_emoji_picker 1.0.1 copy "flutter_emoji_picker: ^1.0.1" to clipboard
flutter_emoji_picker: ^1.0.1 copied to clipboard

An simple emojis picker that makes too easy select emojis from any platform

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_emoji_picker/flutter_emoji_picker.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return const EmojiProvider(
      child: MaterialApp(
        title: 'Flutter Demo',
        themeMode: ThemeMode.dark,
        home: MyHomePage(title: 'Emoji picker'),
      ),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final ValueNotifier<String?> _currentHoverNotifier = ValueNotifier('');
  @override
  void dispose() {
    _currentHoverNotifier.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: <Widget>[
            Row(
              children: [
                Container(
                  alignment: Alignment.center,
                  child: EmojiButton(
                    emojiPickerViewConfiguration: EmojiPickerViewConfiguration(
                      viewType: ViewType.bottomsheet,
                      onEmojiSelected: (emoji) {},
                    ),
                    child: const Icon(
                      CupertinoIcons.arrow_down,
                    ),
                  ),
                ),
                const SizedBox(width: 10),
                Container(
                  alignment: Alignment.center,
                  child: EmojiButton(
                    emojiPickerViewConfiguration: EmojiPickerViewConfiguration(
                      viewType: ViewType.dialog,
                      onEmojiSelected: (emoji) {},
                    ),
                    child: const Icon(
                      Icons.emoji_flags,
                    ),
                  ),
                ),
              ],
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
140
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

An simple emojis picker that makes too easy select emojis from any platform

Homepage
Repository (GitHub)
View/report issues

Topics

#ui #picker #emojis #widget #emojis-picker

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

bloc, collection, equatable, eva_icons_flutter, flutter, flutter_bloc, flutter_hooks, sliver_tools

More

Packages that depend on flutter_emoji_picker