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

How to change background color of streamchat widget. #46

Closed
divyanshub024 opened this issue May 6, 2020 · 7 comments
Closed

How to change background color of streamchat widget. #46

divyanshub024 opened this issue May 6, 2020 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@divyanshub024
Copy link

Hey!! I want to change the bg color of my StreamChat widget but even after changing the streamChatThemeData nothing works.

This is what my code looks like

Chat.StreamChat(
                  client: controller.client,
                  streamChatThemeData: Chat.StreamChatThemeData.fromTheme(appTheme),
                  child: Chat.StreamChannel(
                    channel: controller.channel,
                    child: ChannelPage(),
                  ),
                ),
@imtoori imtoori transferred this issue from GetStream/stream-chat-dart May 6, 2020
@imtoori imtoori added the enhancement New feature or request label May 6, 2020
@imtoori imtoori self-assigned this May 6, 2020
@imtoori
Copy link
Contributor

imtoori commented May 6, 2020

Hey! Thanks for opening this issue

In the last version, there is a property called backgroundColor in StreamChatThemeData
If you initialize the theme using StreamChatThemeData.fromTheme it will default to theme.scaffoldBackgroundColor, otherwise it will be Colors.white

Let me know if that works for you

@divyanshub024
Copy link
Author

@imtoori I can see only these params in StreamChatThemeData.

StreamChatThemeData copyWith({
    Color primaryColor,
    Color secondaryColor,
    Color accentColor,
    ChannelPreviewTheme channelPreviewTheme,
    ChannelTheme channelTheme,
    MessageTheme ownMessageTheme,
    MessageTheme otherMessageTheme,
    Widget Function(BuildContext, Channel) defaultChannelImage,
    Widget Function(BuildContext, User) defaultUserImage,
    IconThemeData primaryIconTheme,
  })

@divyanshub024
Copy link
Author

And I'm on version ^0.2.0-alpha+2.

@imtoori
Copy link
Contributor

imtoori commented May 6, 2020

Can you try version 0.2.0-alpha+15 or the stable 0.1.35? I just released those versions

@divyanshub024
Copy link
Author

@imtoori Cool, I'll try that. Is there a place where I can see changelogs for alpha version?

@imtoori
Copy link
Contributor

imtoori commented May 6, 2020

https://pub.dev/packages/stream_chat_flutter/versions/0.2.0-alpha+15#-changelog-tab-
There is no other place than the pub at the moment

By the way thanks for trying the alpha version

@divyanshub024
Copy link
Author

divyanshub024 commented May 6, 2020

It's my pleasure to test cool things you guys are doing in alpha version.
Thanks a lot for all the help 🙏

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

No branches or pull requests

2 participants