You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
Dart
54 lines
1.5 KiB
Dart
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<ProfileSettings>
|
|
with TickerProviderStateMixin {
|
|
Widget build(BuildContext context) {
|
|
bool isVibration = true;
|
|
return Container(
|
|
child: ListView(scrollDirection: Axis.vertical, children: <Widget>[
|
|
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,
|
|
)
|
|
],
|
|
))
|
|
]));
|
|
}
|
|
}
|