getMainView method
Implementation
Widget getMainView(Map<String, dynamic> data, String tableName) {
var dataReponse = Methods.getList(data['data'], tableName);
if (dataReponse.isNotEmpty) {
var value = dataReponse[0];
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
Message.getMessage('BOLOC_VI_TRI'),
style: TextStyle(
color: Common.colorAppbar,
fontWeight: FontWeight.bold,
fontSize: 18,
),
),
const SizedBox(
height: 16,
),
SizedBox(
height: Get.height / 4,
width: Get.width,
child: MapLocation(
[
SetUpMarker(
value,
id: Methods.getInt(value, 'ID'),
title: Methods.getString(value, 'title'),
latitude: Methods.getDouble(value, 'lat'),
longitude: Methods.getDouble(value, 'long'),
backGroundColor: Common.colorAppbar,
textColor: Colors.white,
)
],
),
),
],
);
}
return Container();
}