Skip to content

Commit 49f0ebc

Browse files
committed
Merge remote-tracking branch 'origin/main' into sysnc-main-20241108
2 parents c8623ec + 35c1339 commit 49f0ebc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,23 +155,23 @@ class _HomeScreenState extends State<HomeScreen> {
155155

156156
### Explanation
157157

158-
1. **Import Packages**:
158+
1. **Import Packages**:
159159
Import the necessary packages, including `chative_sdk`.
160160

161-
2. **Initialize the App**:
161+
2. **Initialize the App**:
162162
The `MyApp` class sets up the `MaterialApp` with a `HomeScreen` as the home.
163163

164-
3. **Create the Chat Screen**:
165-
- **Controller Initialization**:
164+
3. **Create the Chat Screen**:
165+
- **Controller Initialization**:
166166
Instantiate `ChativeWidgetController` to manage the chat widget's state.
167-
168-
- **User Information**:
167+
168+
- **User Information**:
169169
Define a `user` map with necessary user details.
170-
171-
- **Show Chat Widget**:
170+
171+
- **Show Chat Widget**:
172172
An `ElevatedButton` triggers the `show()` method on the controller to display the chat widget.
173-
174-
- **ChativeWidget Configuration**:
173+
174+
- **ChativeWidget Configuration**:
175175
The `ChativeWidget` is placed within a `Stack` to overlay it on top of the main content. Configure properties like `channelId`, `user`, `insetTop`, and callback functions to handle different states and events.
176176

177177
## Properties

0 commit comments

Comments
 (0)