Skip to content

hyz1992/rich_textfield

Repository files navigation

rich_textfield

flutter富文本输入框,支持表情、@某人、#话题#

The example screen shot

使用方法

import 'package:rich_textfield/rich_textfield.dart';
MyTextEditingController _editCtrl = new MyTextEditingController(
  topicStyle: new TextStyle(
    fontWeight: FontWeight.bold,
    color: Colors.yellow
  ),
  atStyle: new TextStyle(
    fontWeight: FontWeight.bold,
    color: Colors.green
  ),
  emojiImgSourceType: EmojiImgSourceType.asset
);

Widget ret = new MyTextField(
  controller: _editCtrl,
  focusNode: _focusNode,
  style: new TextStyle(
    fontSize: 20,
    color: const Color.fromARGB(255, 180, 180, 180)
  ),
);

About

rich editText with emoji、@Someone、#topic#,for flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages