Add business profile links

This commit is contained in:
2026-06-01 12:58:17 +02:00
parent 49c7ecce1f
commit efe225b9f8
17 changed files with 966 additions and 92 deletions
@@ -179,8 +179,26 @@ class MzansiProfileProvider extends ChangeNotifier {
personalLinks[personalIndex] = updatedLink;
}
if (businessIndex != -1) {
businessLinks[personalIndex] = updatedLink;
businessLinks[businessIndex] = updatedLink;
}
notifyListeners();
}
void reorderPersonalLinks({required int oldIndex, required int newIndex}) {
if (oldIndex < newIndex) {
newIndex -= 1;
}
final ProfileLink link = personalLinks.removeAt(oldIndex);
personalLinks.insert(newIndex, link);
notifyListeners();
}
void reorderBusinessLinks({required int oldIndex, required int newIndex}) {
if (oldIndex < newIndex) {
newIndex -= 1;
}
final ProfileLink link = businessLinks.removeAt(oldIndex);
businessLinks.insert(newIndex, link);
notifyListeners();
}
}