# SPAvatarKit Flutter Plugin Example (iOS Only)

This is an example application demonstrating how to use the SPAvatarKit Flutter plugin on iOS.

## Features

- Display digital characters using the SPAvatarKit SDK
- Load characters with specific IDs
- Connect to network services
- Play audio files to drive character animations
- Real-time state monitoring and control

## Requirements

- iOS 16.0+
- Xcode 16.0+
- Flutter 3.3.0+
- SPAvatarKit SDK license

## Getting Started

1. Make sure you have Flutter and Xcode installed and set up
2. Navigate to this example directory
3. Run `flutter pub get` to install dependencies
4. Run `flutter run` to start the application on iOS simulator or device

## Usage

1. **Load Character**: Tap the "加载角色" button to load a digital character with the specified ID
2. **Connect Service**: Tap the "连接服务" button to establish network connection
3. **Play Audio**: Use the audio buttons to play different audio files and see the character respond

## Configuration

- The character ID is hardcoded as `'e41f7ee0-3807-4956-b169-1becf8497ebc'`
- Audio files are included in the `assets/audio/` directory
- The session token is currently empty and should be configured based on your requirements

## Dependencies

This example depends on the `sp_character_plugin` package located in the parent directory.

## Platform Support

- iOS only

## Notes

- Make sure you have the necessary SPAvatarKit SDK licenses and configurations
- The example uses demo audio files for testing purposes
- Real-world usage requires proper session token and character ID configuration
- This example is designed specifically for iOS platform
