getMainView method
Implementation
Widget getMainView(Map<String, dynamic> data, String tableName) {
var dataReponse = Methods.getList(data['data'], tableName);
IActionEvent iAction = data['ActionEvent'] as IActionEvent;
if (dataReponse.isNotEmpty) {
String keyTitle = Methods.getString(dataReponse[0], 'keyTitle');
Color color = Methods.getColor(dataReponse[0], 'textColor',
defaultValue: Common.colorAppbar);
double fontSize = Methods.getDouble(dataReponse[0], 'fontSize');
String htmlXemThem = Methods.getString(dataReponse[0], 'htmlXemThem');
String html = Methods.getString(dataReponse[0], 'htmThongtin');
bool anHtml = Methods.getBool(data, 'anHtml');
return ThongTinHTML(
color: color,
fontSize: fontSize,
html: html,
htmlXemThem: htmlXemThem,
keyTitle: keyTitle,
iAction: iAction,
anHtml: anHtml,
);
} else {
return Container();
}
}