A fear of darkness, called achluophobia, has been documented among humans for decades.
If your dog seems to fear the dark, even when you are with her, you might consider if she is suffering from a vision deficit that could contribute to her fear and start by consulting a veterinarian.