Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed in another App #94

Open
gwbischof opened this issue Dec 3, 2022 · 2 comments
Open

Embed in another App #94

gwbischof opened this issue Dec 3, 2022 · 2 comments
Labels

Comments

@gwbischof
Copy link

gwbischof commented Dec 3, 2022

I have read through the docs, and example code.
The example code seems like a collection of independent Scaffolds, like Rooms, ChatPage, LoginPage.
Scaffolds don't seem like the best Widget type to plug it into another App, because the Parent app probably already has a scaffold, with AppBar. I think that it is not recommended to put Scaffolds inside of Scaffolds.
I think there are some other Issues with putting the example code into another App, like the Routing.

Would it make sense to make a single Container, without an AppBar that has all of the parts from the Example code? Maybe this code could be considered a second example? This might make it easier for people to add this to their app. And it might be nice to have an example of how to put the chat into your app.

Would this be useful? Is there some reason that it should be done differently?

I'd be happy to write this code.

@gwbischof gwbischof changed the title Flutter Component for Chat to embed in another App Flutter Container for Chat to embed in another App Dec 7, 2022
@gwbischof
Copy link
Author

I've been messing around with the code more, and I think I answered my own question.

The RoomsPage is that Object that I had in mind, to embed into my app.
When you open a Chat it opens over your app, I thought this was strange at first, but now I think that's the right behavior.
I think if you are embedding the chat into your App then maybe you should convert the RoomsPage Scaffold to a Container, and probably get rid of the AppBar. And use your App's AppBar.

@gwbischof gwbischof changed the title Flutter Container for Chat to embed in another App Embed in another App Dec 7, 2022
@demchenkoalex
Copy link
Member

Hi! But Example is just an app for.. an example. It is not supposed to be included in any other app. As you can see in the lib itself - it contains nothing UI wise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants