feat: custom spring (#304)

This commit is contained in:
My-Responsitories
2025-02-22 09:56:36 +00:00
committed by GitHub
parent 6506afa732
commit b2c520bd91
14 changed files with 121 additions and 4 deletions

View File

@@ -415,6 +415,12 @@ class GStorage {
};
}
static final _defaultSpring = const ClampingScrollPhysics().spring;
static final List springDescription = setting
.get(SettingBoxKey.springDescription,
defaultValue: [_defaultSpring.mass, _defaultSpring.stiffness, _defaultSpring.damping]);
// static Brightness get brightness {
// return switch (_themeMode) {
// 0 => Brightness.light,
@@ -625,6 +631,7 @@ class SettingBoxKey {
antiGoodsDyn = 'antiGoodsDyn',
antiGoodsReply = 'antiGoodsReply',
expandDynLivePanel = 'expandDynLivePanel',
springDescription = 'springDescription',
// Sponsor Block
enableSponsorBlock = 'enableSponsorBlock',