Update README.md
This commit is contained in:
@@ -41,34 +41,34 @@ You should then run `flutter packages get`
|
|||||||
|
|
||||||
We provide 2 Widgets dedicated to business logic and state management:
|
We provide 2 Widgets dedicated to business logic and state management:
|
||||||
|
|
||||||
- StreamChat
|
- `StreamChat`
|
||||||
- StreamChannel
|
- `StreamChannel`
|
||||||
|
|
||||||
### UI Components
|
### UI Components
|
||||||
|
|
||||||
These are the available Widgets that you can use to build your application UI.
|
These are the available Widgets that you can use to build your application UI.
|
||||||
Every widget uses the StreamChat or StreamChannel widgets to manage the state and communicate with Stream services.
|
Every widget uses the `StreamChat` or `StreamChannel` widgets to manage the state and communicate with Stream services.
|
||||||
|
|
||||||
- ChannelHeader
|
- `ChannelHeader`
|
||||||
- ChannelImage
|
- `ChannelImage`
|
||||||
- ChannelListView
|
- `ChannelListView`
|
||||||
- ChannelName
|
- `ChannelName`
|
||||||
- ChannelPreview
|
- `ChannelPreview`
|
||||||
- MessageInput
|
- `MessageInput`
|
||||||
- MessageListView
|
- `MessageListView`
|
||||||
- MessageWidget
|
- `MessageWidget`
|
||||||
- StreamChatTheme
|
- `StreamChatTheme`
|
||||||
- ThreadHeader
|
- `ThreadHeader`
|
||||||
|
|
||||||
|
|
||||||
### Customizing styles
|
### Customizing styles
|
||||||
|
|
||||||
The Flutter SDK comes with a fully designed set of widgets which you can customize to fit with your application style and typography.
|
The Flutter SDK comes with a fully designed set of widgets which you can customize to fit with your application style and typography.
|
||||||
Changing the theme of Chat widgets works in a very similar way that MaterialApp and Theme do.
|
Changing the theme of Chat widgets works in a very similar way that `MaterialApp` and `Theme` do.
|
||||||
|
|
||||||
Out of the box all chat widgets use their own default styling, there are two ways to change the styling:
|
Out of the box all chat widgets use their own default styling, there are two ways to change the styling:
|
||||||
|
|
||||||
1. Initialize the StreamChatTheme from your existing MaterialApp style
|
1. Initialize the `StreamChatTheme` from your existing `MaterialApp` style
|
||||||
```dart
|
```dart
|
||||||
class MyApp extends StatelessWidget {
|
class MyApp extends StatelessWidget {
|
||||||
final Client client;
|
final Client client;
|
||||||
|
|||||||
Reference in New Issue
Block a user