|
@@ -161,11 +161,16 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {
|
|
trailingIcon: Icons.chevron_right_outlined,
|
|
trailingIcon: Icons.chevron_right_outlined,
|
|
trailingIconIsMuted: true,
|
|
trailingIconIsMuted: true,
|
|
onTap: () async {
|
|
onTap: () async {
|
|
- await PersonService.instance.storeRemoteFeedback();
|
|
|
|
- await FaceMlService.instance
|
|
|
|
- .clusterAllImages(clusterInBuckets: true);
|
|
|
|
- Bus.instance.fire(PeopleChangedEvent());
|
|
|
|
- showShortToast(context, "Done");
|
|
|
|
|
|
+ try {
|
|
|
|
+ await PersonService.instance.storeRemoteFeedback();
|
|
|
|
+ await FaceMlService.instance
|
|
|
|
+ .clusterAllImages(clusterInBuckets: true);
|
|
|
|
+ Bus.instance.fire(PeopleChangedEvent());
|
|
|
|
+ showShortToast(context, "Done");
|
|
|
|
+ } catch (e, s) {
|
|
|
|
+ _logger.warning('clustering failed ', e, s);
|
|
|
|
+ await showGenericErrorDialog(context: context, error: e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
),
|
|
),
|
|
sectionOptionSpacing,
|
|
sectionOptionSpacing,
|