TODOs
This commit is contained in:
parent
ec71200ab0
commit
253316fb1f
@ -260,7 +260,6 @@ class _EntityWidgetState extends State<EntityWidget> {
|
||||
}
|
||||
|
||||
Widget _buildBadgeWidget(BuildContext context) {
|
||||
//TODO separate this by different Entity classes
|
||||
double iconSize = 26.0;
|
||||
Widget badgeIcon;
|
||||
String onBadgeTextValue;
|
||||
|
@ -51,8 +51,7 @@ class EntityCollection {
|
||||
}
|
||||
|
||||
void updateFromRaw(Map rawEntityData) {
|
||||
//TODO pass entity in this function and call update from it
|
||||
_entities[rawEntityData["entity_id"]].update(rawEntityData);
|
||||
get("${rawEntityData["entity_id"]}")?.update(rawEntityData);
|
||||
}
|
||||
|
||||
Entity get(String entityId) {
|
||||
@ -61,7 +60,6 @@ class EntityCollection {
|
||||
|
||||
List<Entity> getAll(List ids) {
|
||||
List<Entity> result = [];
|
||||
//TODO optimize this
|
||||
ids.forEach((id){
|
||||
Entity en = get(id);
|
||||
if (en != null) {
|
||||
|
@ -30,7 +30,6 @@ class ViewBuilder{
|
||||
View _composeDefaultView() {
|
||||
Map<String, List<String>> userGroupsList = entityCollection.getDefaultViewTopLevelEntities();
|
||||
List<Entity> entitiesForView = [];
|
||||
//TODO WTF? Why two arrays?
|
||||
userGroupsList["userGroups"].forEach((groupId){
|
||||
entitiesForView.add(entityCollection.get(groupId));
|
||||
});
|
||||
|
Reference in New Issue
Block a user