import 'package:flutter/material.dart'; class SettingsScreen1 extends StatefulWidget { const SettingsScreen1({Key? key}) : super(key: key); @override State createState() => _SettingsScreen1State(); } class _SettingsScreen1State extends State { bool request=true; bool message=true; @override Widget build(BuildContext context) { const myColor=Colors.orange; return Scaffold( appBar: AppBar( backgroundColor: myColor, title: const Text('Settings'), ), body: SingleChildScrollView( child: Padding( padding: const EdgeInsets.only(left: 10.0,top: 20,right: 10), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ const Padding( padding: EdgeInsets.only(left: 12.0), child: Text('General',style: TextStyle(fontSize: 25,fontWeight: FontWeight.bold),), ), ListTile( title: const Text('Edit Profile',style: TextStyle(fontSize: 16,fontWeight: FontWeight.bold),), trailing: const Icon(Icons.arrow_forward_ios,color: Colors.black,), onTap: (){},), const Divider(thickness: 2,indent: 10,endIndent: 10,height: 0,), ListTile( title: const Text('Change Password',style: TextStyle(fontSize: 16,fontWeight: FontWeight.bold),), trailing: const Icon(Icons.arrow_forward_ios,color: Colors.black), onTap: (){},), const Divider(thickness: 2,indent: 10,endIndent: 10,height: 0,), ListTile( title: const Text('Change Address',style: TextStyle(fontSize: 16,fontWeight: FontWeight.bold),), trailing: const Icon(Icons.arrow_forward_ios,color: Colors.black), onTap: (){},), const Divider(thickness: 2,indent: 10,endIndent: 10,height: 0,), const Padding( padding: EdgeInsets.only(left: 12.0,top: 20), child: Text('Notification',style: TextStyle(fontSize: 25,fontWeight: FontWeight.bold),), ), ListTile( title: const Text('Friend Request',style: TextStyle(fontSize: 16,fontWeight: FontWeight.bold),), trailing: Icon( request? Icons.toggle_on_rounded:Icons.toggle_off_rounded,color: request? myColor:Colors.grey,size: 40,), onTap: (){ setState(() { request=! request; });},), Divider(thickness: 2,indent: 10,endIndent: 10,height: 0,), ListTile( title: const Text('Receive Message',style: TextStyle(fontSize: 16,fontWeight: FontWeight.bold),), trailing: Icon( message? Icons.toggle_on_rounded:Icons.toggle_off_rounded,color: message? myColor:Colors.grey,size: 40,), onTap: (){ setState(() { message=! message; });},), const Divider(thickness: 2,indent: 10,endIndent: 10,height:0,), const Padding( padding: EdgeInsets.only(left: 10.0,top: 10), child: Text('Others',style: TextStyle(fontSize: 25,fontWeight: FontWeight.bold),), ), ListTile( title: const Text('Privacy Policy',style: TextStyle(fontSize: 18,fontWeight: FontWeight.bold),), trailing: const Icon(Icons.arrow_forward_ios,color: Colors.black,), onTap: (){},), const Divider(thickness: 2,indent: 10,endIndent: 10,height: 0,), ListTile( title: const Text('Terms & Conditions',style: TextStyle(fontSize: 18,fontWeight: FontWeight.bold),), trailing: const Icon(Icons.arrow_forward_ios,color: Colors.black,), onTap: (){},), const Divider(thickness: 2,indent: 10,endIndent: 10,height: 0,), ], ), ), ), ); } }