>inflexibility on the EU side triggered the Brexit referendum.
That's a bit of a stretch
That's a bit of a stretch
Cameron was trying to reduce the scope of EU integration with the UK (esp freedom of movement), with the threat he didn't want to use of a referendum, the EU said no (as the other commenter explained partly to disincentivize others, but also because they thought he was bluffing and people would never vote to leave), so the referendum was held.
Restricting that is a tall ask, I wouldn't describe refusing that as being inflexible.
[1]: https://european-union.europa.eu/principles-countries-histor... "Freedom of movement gives citizens the right to move and reside freely within the Union."