Comments (7)
ok there was no easy way to not break the api with it, so I just removed it. I guess if someone will want it they will use previous release. Need to push v2
asap, cause now it is going wild :D released in v1.6.12
from flutter_chat_ui.
Given state of v1 your code was fine @asoap, I didn't realise it was a breaking change since people actually needed to add 1 line and also ignore the warning. I didn't want to release 1.7.0 cause the plan is to start from a clean sheet with 2.0.0, that will take into consideration this problem as well. Everything will be more modular, more widgets, less huge build functions.
from flutter_chat_ui.
Thanks both. I appreciate the change and that it would be useful (I'm not sure I understand still how to convert my own code, but I guess for now it doesn't matter). I'm more than likely to need this functionality soon, so please don't take my initial comment as a complaint about the functionality it adds.
Also, I really appreciate this package and it was a lifesaver when I discovered it about six month ago (following on from my own really terrible implementation of this functionality which was almost unusable to my end-users). Thanks to this, this part of my app is flourishing!
Thank you!!!
from flutter_chat_ui.
yeah.. I just now merge everything people add, but not really testing, cause code is a mess. Let me try to fix and release this.
from flutter_chat_ui.
I'm the one that made the pull request. The defaultBubbleMessage is the message that is created by the package. So you can wrap it with whatever you want. If you want to add anything that goes beside each message wihtout, it's really difficult. The package normally references a ton of stuff so it's hard to re-create the message outside of package. If all you want to do is add emojis or something beside the message you can then return the defaultBubbleMessage with the emojis added inside of a widget.
If you want the bubbleBuilder to do nothing you can just return the defaultBubbleMessage.
Here is the link to the pull request in case you're curious:
#553
from flutter_chat_ui.
It's all good. I just wanted to provide information to the person that asked for it. I'm looking forward to v2.0.0.
from flutter_chat_ui.
Here is a sample:
When you setup the Chat() widget library you can include this:
bubbleBuilder: ((
Widget child, {
required types.Message message,
required bool nextMessageInGroup,
required Widget defaultBubbleMessage,
}) {
return defaultBubbleMessage;
}),
This essentially does nothing. The package creates the defaultBubbleMessage, what it would normally do without the bubbleBuilder() function. It renders the message like normal.
If you want it to do something else then you can do something like
return Stack(
alignment: Alignment.bottomRight,
children: [
defaultBubbleMessage,
Text('On top of the message'),
],
);
Also if you want to use this, you need to use the one specific package where this exists and have that set in your pubspec.yaml.
from flutter_chat_ui.
Related Issues (20)
- Do not scroll to the bottom of long chat response if the message takes more than full screen height. HOT 3
- Make it possible to customize the chat bubbles width HOT 5
- Undefined Chat argument `isLeftStatus` is used in the example project HOT 1
- Adding the default bubbled message to the bubbleBuilder HOT 1
- Text Field prevent losing focus when tapping anywhere on the chat
- Is it possible to scroll to the first message but without `ScrollToUnreadOptions` HOT 1
- Received message flash gray. HOT 5
- Get to know the height of the input widget depending device HOT 1
- Image Rendering
- Image sending Empty Bubble displayed (BUG) HOT 9
- SendButtonVisibilityMode.editing: send button not added after typing on samsung keyboard HOT 7
- Is there a feature to download images from chat in the form of photos? HOT 1
- Send message with empty text HOT 1
- Attach emojis to a message? HOT 1
- Changing "inputPlaceholder" doesn't work. HOT 2
- Delay in response when using `bubbleBuilder` with `GestureDetector` in `Chat` widget HOT 4
- typing indicator in chat with no messages HOT 2
- About customDateHeaderText HOT 1
- Add default loadingBuilder for ImageMessage
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 flutter_chat_ui.