File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -282,26 +282,26 @@ class _MyHomePageState extends State<MyHomePage> {
282282 ),
283283
284284
285- // LabeledToggle(
286- // transitionType: TextTransitionTypes.FADE,
287- // rounded: true,
288- // borderSize: 2.0,
289- // duration: Duration(milliseconds: 500),
290- // forceWidth: true,
291- // value: switchValue,
292- // onChanged: (v) {
293- // setState(() {
294- // switchValue = v;
295- // });
296- // },
297- // offBkColor: Colors.indigo,
298- // onBkColor: Colors.lightGreen,
299- // offText: "FALSE",
300- // onText: "TRUE",
301- // offThumbColor: Colors.lightGreen,
302- // onThumbColor: Colors.indigo,
303- // thumbSize: 30.0,
304- // ),
285+ LabeledToggle (
286+ transitionType: TextTransitionTypes .FADE ,
287+ rounded: true ,
288+ borderSize: 2.0 ,
289+ duration: Duration (milliseconds: 500 ),
290+ forceWidth: true ,
291+ value: switchValue,
292+ onChanged: (v) {
293+ setState (() {
294+ switchValue = v;
295+ });
296+ },
297+ offBkColor: Colors .indigo,
298+ onBkColor: Colors .lightGreen,
299+ offText: "FALSE" ,
300+ onText: "TRUE" ,
301+ offThumbColor: Colors .lightGreen,
302+ onThumbColor: Colors .indigo,
303+ thumbSize: 30.0 ,
304+ ),
305305
306306
307307 Stack (
You can’t perform that action at this time.
0 commit comments