Add Switch.trackOutlineWidth property (#125848)

This commit is contained in:
Qun Cheng
2023-05-05 13:34:08 -07:00
committed by GitHub
parent 78ed142f30
commit c1c2513ac9
5 changed files with 274 additions and 23 deletions

View File

@@ -126,6 +126,9 @@ class _${blockName}DefaultsM3 extends SwitchThemeData {
});
}
@override
MaterialStatePropertyAll<double> get trackOutlineWidth => const MaterialStatePropertyAll<double>(${tokens['md.comp.switch.track.outline.width']});
@override
double get splashRadius => ${tokens['md.comp.switch.state-layer.size']} / 2;
}