如何调用translation_en?后来,我想在用户单击数据时将其放在底部表中,自动更改为 translation_en 等。或制作一个列表。谢谢回答
subtitle: Padding(
padding: const EdgeInsets.only(top: 5.0),
child: SelectableText(
snapshot.data[index].translation,
style: GoogleFonts.abel(
fontSize: 17,
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic),
),
),
),
这个模型
factory Sura.fromJson(Map<String, dynamic> json) {
return Sura(
serial: json['serial'],
sura: json['sura'],
aya: json['aya'],
arabicText: json['arabic_text'],
bacaan: json['bacaan'],
translation: json['translation'],
translation_en: json['translation_en'],
englishText: json['englishText'],
footnotes: json['footnotes'],
active: false);
}
}