Open apomalyn opened 3 months ago
As a user, I want an alternative to the keyboard.
Implement a generic widget TextOption to display a bite-size element (alternative of keyboard). It should
TextOption
VoidCallback onPressed
String text
boolean selected
onPressed
TextCard
Implement a generic widget TextCard, it should have:
VoidCallbackonPressed
src/practice/questions/widgets
Child of #181
As a user, I want an alternative to the keyboard.
Requirements
Implement a generic widget
TextOption
to display a bite-size element (alternative of keyboard). It shouldVoidCallback onPressed
String text
boolean selected
that displays an empty space when true, on this state,onPressed
should not be calledTextCard
Implement a generic widget
TextCard
, it should have:VoidCallbackonPressed
triggered when pressedString text
, the text to displayWhat needs to be done
TextCard
andTextOption
undersrc/practice/questions/widgets
following the design and requirementsDesign
![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/e96e7545-4865-44e2-ac4a-e2c6bcd57946)TextCard
wireframe
Idle: ![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/e96e7545-4865-44e2-ac4a-e2c6bcd57946) Selected: ![image](https://github.com/RoadTripMoustache/kana_to_kanji/assets/22211097/0e967ab9-4cbd-45d8-a0fb-319ee6a936cd)TextOption
wireframeDependencies
Child of #181