First and foremost, you should be consistent with how you measure your food (raw/dry vs. cooked), and you’ll want to ensure you’re logging the information accordingly. This means that if you are inputting cooked chicken, you will want to log the food as such because the nutrition information will be different from raw chicken.
The most accurate information will be to measure the food in its raw or dry form.
For example, meats will lose water as they are cooked so they will shrink both in size and in weight. However, depending on how you prepared it, it may lose more water than not.
For carbohydrates like rice, quinoa, etc., they will often double or triple in size as they absorb water. However, depending on the preparation method and how much water was absorbed, it may not be the same every single time.