* still in draft * feat(reading_assistance): whole message activity oriented * chore: fix .env file path * feat: animate selected toolbar into middle of screen * chore: initial work for message bubble size animation * refactor(reading_assistance): hooking up the choice interactions and polishing UI * chore: animate in content and buttons * formatting * position reading content relative to selected token * working on limiting choices * chore: fix positioning of toolbar animation * chore: simplify positioning logic * chore: animate in button height * getting there * rough draft with restricted activity number is complete --------- Co-authored-by: ggurdin <ggurdin@gmail.com>
34 lines
789 B
Dart
34 lines
789 B
Dart
class UserSetLemmaInfo {
|
|
final String? meaning;
|
|
final List<String>? emojis;
|
|
|
|
UserSetLemmaInfo({
|
|
this.emojis,
|
|
this.meaning,
|
|
});
|
|
|
|
factory UserSetLemmaInfo.fromJson(Map<String, dynamic> json) {
|
|
return UserSetLemmaInfo(
|
|
emojis: json["emojis"] != null ? List<String>.from(json["emojis"]) : null,
|
|
meaning: json['meaning'] as String?,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'emojis': emojis,
|
|
'meaning': meaning,
|
|
};
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
other is UserSetLemmaInfo &&
|
|
runtimeType == other.runtimeType &&
|
|
emojis == other.emojis &&
|
|
meaning == other.meaning;
|
|
|
|
@override
|
|
int get hashCode => emojis.hashCode ^ meaning.hashCode;
|
|
}
|