Added Switch Animation for Material 3 (#113090)
This commit is contained in:
@@ -202,6 +202,18 @@ class _SwitchConfigM3 with _SwitchConfig {
|
||||
|
||||
@override
|
||||
double get trackWidth => ${tokens['md.comp.switch.track.width']};
|
||||
|
||||
// The thumb size at the middle of the track. Hand coded default based on the animation specs.
|
||||
@override
|
||||
Size get transitionalThumbSize => const Size(34, 22);
|
||||
|
||||
// Hand coded default based on the animation specs.
|
||||
@override
|
||||
int get toggleDuration => 300;
|
||||
|
||||
// Hand coded default based on the animation specs.
|
||||
@override
|
||||
double? get thumbOffset => null;
|
||||
}
|
||||
''';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user