Fix document of the switch. (#89641)

This commit is contained in:
Akira Aratani
2021-09-15 03:30:50 +09:00
committed by GitHub
parent a2cd16ba82
commit 2b4ef184b7

View File

@@ -260,9 +260,9 @@ class Switch extends StatelessWidget {
///
/// | State | Light theme | Dark theme |
/// |----------|---------------------------------|---------------------------------|
/// | Default | `Colors.grey.shade50` | `Colors.grey.shade400` |
/// | Default | `Color(0x52000000)` | `Colors.white30` |
/// | Selected | [activeColor] with alpha `0x80` | [activeColor] with alpha `0x80` |
/// | Disabled | `Color(0x52000000)` | `Colors.white30` |
/// | Disabled | `Colors.black12` | `Colors.white10` |
final MaterialStateProperty<Color?>? trackColor;
/// {@template flutter.material.switch.materialTapTargetSize}