There are pros and cons to both options, but it really depends on your needs and budget and the condition of the home. In general, it’s best to pay a flat fee to avoid contractors taking advantage of a daily rate by taking longer to get the job done.
But if there’s a ton of prep-work involved, painters may insist on a per hour or per day fee. Discuss the options with them and ask for a quote for both.