flutter_emoji_suite 0.1.0 copy "flutter_emoji_suite: ^0.1.0" to clipboard
flutter_emoji_suite: ^0.1.0 copied to clipboard

outdated

a flutter emoji suite,for Android,iOS and etc

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_emoji_suite/flutter_emoji_suite.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Emoji Suite Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: FlutterEmojiSuiteDemo(),
    );
  }
}

class FlutterEmojiSuiteDemo extends StatefulWidget {
  @override
  _FlutterEmojiSuiteDemoState createState() => _FlutterEmojiSuiteDemoState();
}

class _FlutterEmojiSuiteDemoState extends State<FlutterEmojiSuiteDemo> {
  TextEditingController controller = TextEditingController();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Flutter Emoji Suite Demo'),
      ),
      body: Container(
        child: Column(
          children: [
            TextField(
              controller: controller,
            ),
            Text('${defaultEmojiParse.unemojify(controller.text)}'),
            Text('${defaultEmojiParse.emojify(defaultEmojiParse.unemojify(controller.text))}'),
            Expanded(
              child: EmojiPicker(emojiPickObserver: (dynamic emoji) {
                setState(() {
                  controller.text = '${controller.text}$emoji';
                });
              }),
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
0
pub points
18%
popularity

Publisher

verified publisherultimate.icu

a flutter emoji suite,for Android,iOS and etc

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_emoji_suite