Comments (3)
I think it's better to add some property to MessageInput
to make it easy for you to implement this feature as a customization of the SDK
It will fulfil your requirements and it will make the widget more versatile
from stream-chat-flutter.
As pointed out by @nosmirck, we could pass a list of objects like this
class MessageParser{
final RegExp exp;
final Color color;
final VoidCallback onTap;
MessageParser({@required this.exp, @required this.color, this.onTap});
}
It's also a way to generalize the parsing of mentions.
The only problem I can see so far is that the message text is a MarkdownBody
widget from the package flutter_markdown
.
At the moment mentions are made clickable substituting the text with a markdown link (@imtoori = @imtoori) and handled using the property onTapLink
of MarkdownBody
.
I think this is a nice solution, but we need to review the markdown widget first.
from stream-chat-flutter.
This is doable using the textBuilder
property of the MessageWidget
, but I don't think we're gonna implement it in the SDK
Anyway, we're gonna add a guide on how to do this in our documentation
I'm closing this and I'll update you when the documentation is available
from stream-chat-flutter.
Related Issues (20)
- Add ability to mark a channel as unread HOT 4
- When user on android tries to download .doxc it downloads .zip folder HOT 2
- spaceBetweenActions not working HOT 4
- Special characters in filenames can lead to "AccessDeniedAccess denied" page on stream-io-cdn.com on iOS HOT 2
- StreamMediaAttachmentThumbnail is still inaccessible in 7.1.0 HOT 2
- support to customize the duration of scrolling to bottom HOT 2
- Reaction Picker Tail is always shown when the Reaction Picker is enabled in the default message widget HOT 3
- Creating a new user doesn't always work HOT 3
- First message doesn't send HOT 2
- Filtering does not work when querying channels HOT 9
- Release 7.2.0 has wrong dependency restrictions for connectivity_plus HOT 5
- always showing 'You must have a Stream Chat Theme widget at the top of your widget tree' even if it is wrap HOT 4
- Version issues 7.2 'A value of type 'Stream<List<ConnectivityResult>>' can't be assigned to a variable of type 'Stream<ConnectivityResult>?' HOT 25
- type '_$Loading<int, Channel>' is not a subtype of type 'Success<int, Channel>' in type cast HOT 2
- Attachment Error : Unhandled Exception: FormatException: Illegal scheme character HOT 2
- HttpException: Bad file descriptor on connect call HOT 2
- 7.2.0-hotfix.1 not working HOT 4
- Exception caught by image resource service: Invalid argument(s): No host specified in URI HOT 1
- Long-press reaction triggers web context menu on mobile
- Update connectivity_plus and other dependencies to latest versions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream-chat-flutter.