Walgreen Co. has agreed to pay $683 million to settle all opioid claims brought by the state of Florida and its cities and counties, including $63 million in litigation costs.

Announced Thursday, the settlement halts a jury trial that began last month between Florida Attorney General Ashley Moody and Walgreens, which is one of several pharmacies accused of flooding communities with opiates, which are prescription painkillers.