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.
diplomatic-quarter/lib/pages/settings/profile_setting.dart

163 lines
4.9 KiB
Dart

import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
4 years ago
import 'package:diplomaticquarterapp/widgets/text/app_texts_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;
4 years ago
var language = 1;
return Container(
child: ListView(scrollDirection: Axis.vertical, children: <Widget>[
4 years ago
Container(
padding: EdgeInsets.all(15),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
AppText(
'File No',
color: Colors.black,
),
AppText(
'124545',
color: Colors.black,
),
],
),
),
SizedBox(
height: 1,
width: MediaQuery.of(context).size.width,
child: Container(
color: Colors.grey[300],
),
),
Padding(
child: AppText('SMS and Confirmation Calls Language ',
fontWeight: FontWeight.bold),
padding: EdgeInsets.all(10),
),
Container(
color: Colors.white,
padding: EdgeInsets.only(top: 0, left: 10, right: 10, bottom: 0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
AppText('English'),
new Radio(
value: 2,
groupValue: language,
onChanged: (value) {
language = value;
},
)
],
)),
Container(
color: Colors.white,
padding: EdgeInsets.only(top: 0, left: 10, right: 10, bottom: 0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
AppText('Arabic'),
new Radio(
value: 1,
groupValue: language,
onChanged: (value) {
language = value;
},
)
],
)),
Padding(
child: AppText('Alert'),
padding: EdgeInsets.all(10),
),
Container(
color: Colors.white,
4 years ago
padding: EdgeInsets.only(top: 0, left: 10, right: 10, bottom: 0),
child: Row(
4 years ago
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
4 years ago
AppText('Alert by Email'),
Switch(
value: isVibration,
onChanged: (value) {
setState(() {
isVibration = value;
});
},
activeTrackColor: Colors.lightGreenAccent,
activeColor: Colors.green,
)
],
)),
Container(
color: Colors.white,
4 years ago
padding: EdgeInsets.only(top: 0, left: 10, right: 10, bottom: 0),
child: Row(
4 years ago
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
4 years ago
AppText('Alert by SMS'),
Switch(
value: isVibration,
onChanged: (value) {
setState(() {
isVibration = value;
});
},
activeTrackColor: Colors.lightGreenAccent,
activeColor: Colors.green,
)
],
4 years ago
)),
Padding(
child: AppText('Alert'),
padding: EdgeInsets.all(10),
),
Container(
color: Colors.white,
padding: EdgeInsets.only(top: 0, left: 10, right: 10, bottom: 0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppText('Email'),
TextField(
style: TextStyle(color: Colors.red),
)
],
)),
Container(
color: Colors.white,
padding: EdgeInsets.only(top: 0, left: 10, right: 10, bottom: 0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppText('Emergency contact name'),
TextField(
style: TextStyle(color: Colors.red),
)
],
)),
Container(
color: Colors.white,
padding: EdgeInsets.only(top: 0, left: 10, right: 10, bottom: 0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppText('Emergency contact number'),
TextField(
style: TextStyle(color: Colors.red),
)
],
))
]));
}
}