It is even possible to use dry fly on a spinning rod. Small float about 2-3 feet above a dry fly. Have caught small stream trout this way. Not much different than indicator fishing per se. This is much more realistic if you use a longer ultralight rod with 2-4lb mono. To cast it more effectively, have your float hang 2-3 feet from the rod tip on the cast to generate enough momentum on your cast.
People often fish with nymphs...but some dry flies like Elk Hair Caddis and Adams are great for panfish. You've all seen panfish puddle and pop little insects off the surface.
For bigger panfish and bass, you can also try larger flies like Foam Hoppers, Stimulators and larger mayfly patterns such as Green Drake and Hendrickson.
If you fish the flies subsurface under a float (float helps you add weight on the cast), you can use Woolly Bugger, San Juan Worm, stonefly nymph, Prince Nymph, Beadhed Pheasant Tail, Beadhead Hares Ear, dragonfly nymph, hellgrammite patterns...etc.
Thinking outside of the box, you can also work streamer patterns under the float. Streams that comes to mind are rabbit leech, Muddler Minnow, Clouser Minnow...etc. Just cast it out and do a twitch, pause, twitch, pause retrieve all the way back. The float would pop to draw attention...and the more subtle fly action induce the strike.
If you are really crafty, you can also fish crayfish fly patterns on the spinning rod.