(fix) felhős projekthez csak bejelentkezés után lehet csatlakozni, név megjelenítése a kapcsolatok mellett a terepbejárás nézetben.
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
This commit is contained in:
@@ -65,6 +65,18 @@ class NoteItemLabelLayer extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
// ----- Kapcsolatok - névvel a személy ikon felett
|
||||
for (final c in controller.contactsWithLocation) {
|
||||
markers.add(Marker(
|
||||
point: LatLng(c.contact.lat!, c.contact.lon!),
|
||||
width: 130,
|
||||
height: 48,
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
||||
_LabelBubble(label: c.contact.name, color: Colors.indigo)
|
||||
])));
|
||||
}
|
||||
|
||||
if (markers.isEmpty) return const SizedBox.shrink();
|
||||
return MarkerLayer(markers: markers);
|
||||
});
|
||||
|
||||
@@ -184,8 +184,15 @@ class _ProjectTileState extends State<_ProjectTile> {
|
||||
],
|
||||
),
|
||||
onTap: () async {
|
||||
await svc.setActiveProject(project);
|
||||
Get.back();
|
||||
try {
|
||||
await svc.setActiveProject(project);
|
||||
Get.back();
|
||||
} catch (e) {
|
||||
Get.snackbar('Nem lehet aktiválni', e.toString(),
|
||||
snackPosition: SnackPosition.BOTTOM,
|
||||
backgroundColor: Colors.red,
|
||||
colorText: Colors.white);
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user