Using Flutter hooks to simplify state management