From b4adafac08fc16cb402e0f3277da1f00afb594f0 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Thu, 14 Feb 2019 02:13:08 +0530 Subject: [PATCH] Fixed Cupertino Switch Demo (#27528) --- .../lib/demo/cupertino/cupertino_switch_demo.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart b/examples/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart index aee5d1f2fb..2e5b6d9a7f 100644 --- a/examples/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart +++ b/examples/flutter_gallery/lib/demo/cupertino/cupertino_switch_demo.dart @@ -47,8 +47,8 @@ class _CupertinoSwitchDemoState extends State { }); }, ), - const Text( - 'Active' + Text( + "Enabled - ${_switchValue ? "On" : "Off"}" ), ], ), @@ -62,7 +62,7 @@ class _CupertinoSwitchDemoState extends State { onChanged: null, ), Text( - 'Disabled' + 'Disabled - On' ), ], ), @@ -76,7 +76,7 @@ class _CupertinoSwitchDemoState extends State { onChanged: null, ), Text( - 'Disabled' + 'Disabled - Off' ), ], ),