@@ -280,29 +280,30 @@ class _MyHomePageState extends State<MyHomePage> {
280280 ),
281281
282282
283- LabeledToggle (
284- transitionType: TextTransitionTypes .FADE ,
285- rounded: true ,
286- borderSize: 2.0 ,
287- duration: Duration (milliseconds: 500 ),
288- forceWidth: true ,
289- value: switchValue,
290- onChanged: (v) {
291- setState (() {
292- switchValue = v;
293- });
294- },
295- offBkColor: Colors .indigo,
296- onBkColor: Colors .lightGreen,
297- offText: "FALSE" ,
298- onText: "TRUE" ,
299- offThumbColor: Colors .lightGreen,
300- onThumbColor: Colors .indigo,
301- thumbSize: 30.0 ,
302- ),
283+ // LabeledToggle(
284+ // transitionType: TextTransitionTypes.FADE,
285+ // rounded: true,
286+ // borderSize: 2.0,
287+ // duration: Duration(milliseconds: 500),
288+ // forceWidth: true,
289+ // value: switchValue,
290+ // onChanged: (v) {
291+ // setState(() {
292+ // switchValue = v;
293+ // });
294+ // },
295+ // offBkColor: Colors.indigo,
296+ // onBkColor: Colors.lightGreen,
297+ // offText: "FALSE",
298+ // onText: "TRUE",
299+ // offThumbColor: Colors.lightGreen,
300+ // onThumbColor: Colors.indigo,
301+ // thumbSize: 30.0,
302+ // ),
303303 LabeledToggle (
304304
305305//
306+
306307 forceWidth: true ,
307308 value: switchValue,
308309 onChanged: (v) {
@@ -314,11 +315,15 @@ class _MyHomePageState extends State<MyHomePage> {
314315// onBkColor: Colors.white,
315316// onBorderColor: Colors.green,
316317// offBorderColor: Colors.red,
317- offText: "No" ,
318- onText: "YES" ,
318+ // offText: "No",
319+ // onText: "YES",
319320 offThumbColor: Colors .blue,
320- onThumbColor: Colors .green,
321- thumbSize: 30.0 ,
321+ onThumbColor: Colors .white,
322+ thumbSize: 32.0 ,
323+ onBkColor: Colors .green.withOpacity (0.80 ),
324+
325+
326+
322327 ),
323328
324329
0 commit comments