From 51bf72afa286b5276d8f713e480679154ae898ad Mon Sep 17 00:00:00 2001 From: Huy Date: Tue, 18 Mar 2025 00:00:05 +0700 Subject: [PATCH] Fix arrowHeadColor breaks differentiation between states (#165178) Fix https://github.com/flutter/flutter/issues/160458 The arrowheads color is currently displayed wrong when passing `arrowHeadColor` parameter, it's due to the `arrowHeadColor` is passing to IconButton.icon widget, not IconButton.color itself. Meanwhile, the IconButton state depends on `onPressed` callback and the button color logic happens in IconButton, not in Icon widget. The fix is simply to pass `arrowHeadColor` to IconButton so that buttons will be displaying correct color when state changes. | before | after | | --------------- | --------------- |