Nothing is built in: Settings → 宠物 shows "尚未导入宠物" until a zip is picked. The zip holds a dsh-Go pack.json and PNG sheets; it is validated (pack.json, every named sheet) and unpacked under the app's private files directory, with enable, size (40/52/64) and remove kept on the device. A pack's canvas, anchor, per-animation box and frame list drive rendering: PetSlot reserves the area above the baseline and stands the sprite on the composer's top edge (or on the activity cap while a turn runs). Idle, thinking, working and error follow the chat's state, and a tap plays the pack's react-left/react-right. Only one sheet is decoded at a time. path_provider's JNI binding does not load on this engine, so MainActivity exposes the files directory over a tiny method channel instead. dist/deepy-whale-pet.zip is the Deepy whale for testing. Tests cover the real pack manifest, frame/state mapping and zip import. 0.4.0 (400).
29 lines
522 B
YAML
29 lines
522 B
YAML
name: openchamber
|
|
description: "A lightweight OpenChamber client for phones."
|
|
publish_to: 'none'
|
|
|
|
version: 0.4.0+400
|
|
|
|
environment:
|
|
sdk: ^3.14.0
|
|
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
cupertino_icons: ^1.0.8
|
|
shared_preferences: ^2.3.0
|
|
flutter_secure_storage: ^11.2.0
|
|
file_picker: ^13.0.0
|
|
gpt_markdown: ^1.4.0
|
|
socks5_proxy: ^2.1.2
|
|
xterm: ^4.0.0
|
|
flutter_slidable: ^5.2.0
|
|
archive: ^3.6.1
|
|
dev_dependencies:
|
|
flutter_test:
|
|
sdk: flutter
|
|
flutter_lints: ^6.0.0
|
|
|
|
flutter:
|
|
uses-material-design: true
|