RoadTripMoustache / kana_to_kanji

Simple application to learn Japanese kana (hiragana, katakana) and kanji
5 stars 1 forks source link

feat: Implement `MultiChoiceOptionTile` for the multi choices question #173

Open apomalyn opened 4 months ago

apomalyn commented 4 months ago

As a <user | developer | ...>, I want to ...

Requirements

Implement the MultiChoicesOption model using freezed.

MultiChoicesOption schema ⚠️ the schema uses OpenAPI spec for simplicity ```yaml MultiChoiceOption: properties: text: type: string description: Text to display tts: type: string description: Text to use for the TTS image: description: Image asset path of the image to display type: string required: - text ```

Implement a MultiChoiceOptionTile, it should:

What needs to be done

Design

MultiChoiceOptionTile wireframe | | IDLE | isSelected | |-----------|------|------------| | isCompact | ![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/153ba948-0333-4f1f-8fc6-2164a7936470) | ![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/33e73491-a8f4-4f20-ab77-ed361315b4d3) | | full | ![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/886a2f99-27ed-4b1d-9001-0b530bf2b75c) | ![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/e3597972-75d5-4693-b398-64b7f537e442) |

Dependencies

Child of #168

Dev notes