From 2b4ef184b7217bdc34e5b382398bc9077f748150 Mon Sep 17 00:00:00 2001 From: Akira Aratani Date: Wed, 15 Sep 2021 03:30:50 +0900 Subject: [PATCH] Fix document of the switch. (#89641) --- packages/flutter/lib/src/material/switch.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/switch.dart b/packages/flutter/lib/src/material/switch.dart index fa0e189937..b3eb1c84aa 100644 --- a/packages/flutter/lib/src/material/switch.dart +++ b/packages/flutter/lib/src/material/switch.dart @@ -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? trackColor; /// {@template flutter.material.switch.materialTapTargetSize}