import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class ProfileSettings extends StatefulWidget { @override _ProfileSettings createState() => _ProfileSettings(); } class _ProfileSettings extends State with TickerProviderStateMixin { Widget build(BuildContext context) { bool isVibration = true; return Container( child: ListView(scrollDirection: Axis.vertical, children: [ Text('Mode'), Container( color: Colors.white, child: Row( children: [ Text('Vibration touch feedback'), Switch( value: isVibration, onChanged: (value) { setState(() { isVibration = value; }); }, activeTrackColor: Colors.lightGreenAccent, activeColor: Colors.green, ) ], )), Container( color: Colors.white, child: Row( children: [ Text('Accsibility Mode'), Switch( value: isVibration, onChanged: (value) { setState(() { isVibration = value; }); }, activeTrackColor: Colors.lightGreenAccent, activeColor: Colors.green, ) ], )) ])); } }