Key Changes
Step-by-Step Migration
1. Update Imports
2. Update Initialization
3. Replace DataSource Calls
4. Update Dependencies
pubspec.yaml
5. State Management Migration (Advanced)
If you were directly using controllers:Controller → BLoC Mapping
Migration Checklist
- ☐ Replace all
CometChatXxxControllerusage withXxxBloc - ☐ Replace
CometChatUIKit.getDataSource().xxx()withMessageTemplateUtils.xxx() - ☐ Remove
extensionsandaiFeaturefromUIKitSettings - ☐ Replace
cometchat_uikit_sharedimports withcometchat_chat_uikit - ☐ Test all features after migration
Property Changes
This section outlines the property changes between V5 and V6. V6 introduces BLoC-based state management and consolidates styling intoThemeData extensions.