Flowers can be obtained for feeding your pets to a certain level. After that, they can be turned into energy in the Bio-Separator. It's located on a separate island to the right from the Nursery.
Hold and drag the flower to the center of the Bio-Separator. You'll receive energy after one of the bars is full.