getMainView method
dynamic
getMainView()
Implementation
getMainView(int idComponentView, Map<String, dynamic> param, String tableName,
int idView) {
if (kDebugMode) {
print('WowCompomentManager.getMainView idComponentView:$idComponentView');
}
switch (idComponentView) {
//Danh sách tin nằm doc - 2
case 6:
return DanhSachNamDoc2().getMainView(param, tableName);
//View HTML
case 7:
return ViewHTML().getMainView(param, tableName);
//Vi tri google map - 1
case 8:
return ViTriCompoment().getMainView(param, tableName);
//Thong tin - 1
case 9:
return ThongTin1().getMainView(param, tableName);
//Banner 1 hình có nút share
case 10:
return BannerHinhAnhShare().getMainView(param, tableName);
//Dấu gạch ngang
case 11:
return DauGachNgang().getMainView(param, tableName);
//Button đăng ký - 1
case 12:
return ButtonDangKy().getMainView(param, tableName, viewID: idView);
default:
if (kDebugMode) {
print(
'===================== [ERROR] Component is not define with idComponentView:$idComponentView =====================');
}
return const SizedBox.shrink();
}
}