You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[material_ui] ButtonThemeData == and hashCode ignore layoutBehavior #195754
const a =ButtonThemeData();
const b =ButtonThemeData(layoutBehavior:ButtonBarLayoutBehavior.constrained);
print(a == b);
Expected results
false, since the two themes have different layoutBehavior values.
Actual results
true. ButtonThemeData.==, hashCode and debugFillProperties don't include layoutBehavior. Because ButtonTheme.updateShouldNotify compares data, changing only layoutBehavior also doesn't notify widgets that depend on the theme.
Seen in packages/material_ui/lib/src/button_theme.dart on main of flutter/packages (material_ui 1.9.0).
Activity
suryaKommana2662 commentedon Nov 2, 2026
@ChandraChaan Thanks for the report. I was able to reproduce this issue locally. Routing to
team-designfor further investigation.Flutter Doctor Output