fix:靠原型不齐页面
This commit is contained in:
@@ -40,4 +40,13 @@ class ProfileSettingsController extends StateNotifier<ProfileSettings> {
|
||||
void setPriceColorMode(PriceColorMode mode) {
|
||||
state = state.copyWith(priceColorMode: mode);
|
||||
}
|
||||
|
||||
void setRecycleDiscount(MetalType metal, double value) {
|
||||
state = state.copyWith(
|
||||
recycleDiscounts: {
|
||||
...state.recycleDiscounts,
|
||||
metal: value.clamp(0.7, 1.0),
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user