- Widget build(BuildContext context) {
- _controllerUserName.text = User.userName;
- print("Profildeki User Değerleri" + User.userName.toString());
- User _userModel = Provider.of<User>(context);
- return Scaffold(
- appBar: AppBar(
- actions: <Widget>[
- Padding(
- padding: const EdgeInsets.only(right: 150),
- child: Center(
- child: Text(
- "101 Hesapla",
- style: TextStyle(
- fontSize: 20,
- color: Colors.white70,
- fontWeight: FontWeight.bold,
- ),
- ),
- ),
- ),
- ],
- title: Container(
- alignment: Alignment.bottomCenter,
- ),
- backgroundColor: Colors.transparent,
- elevation: 0.0,
- ),
- extendBodyBehindAppBar: true,
- body: SingleChildScrollView(
- child: Container(
- color: Color(0xFF454443),
- child: Padding(
- padding: const EdgeInsets.only(
- top: 100, right: 40, left: 40, bottom: 80),
- child: Column(
- children: <Widget>[
- Row(children: [
- Flexible(
- child: TextField(
- // controller: _newVal,
- focusNode: f1,
- keyboardType: TextInputType.emailAddress,
- onChanged: (String newVal) {
- if (newVal.length == 6) {
- f1.unfocus();
- FocusScope.of(context).requestFocus(f2);
- }
- },
- decoration: InputDecoration(
- border: OutlineInputBorder(
- borderSide: BorderSide(
- color: Colors.black26,
- ),
- borderRadius: BorderRadius.circular(13),
- ),
- ),
- controller: _controllerUserName,
- ),
- ),
- Flexible(
- child: TextField(
- focusNode: f2,
- keyboardType: TextInputType.emailAddress,
- onChanged: (String newVal) {
- if (newVal.length == 6) {
- f2.unfocus();
- FocusScope.of(context).requestFocus(f3);
- }
- },
- decoration: InputDecoration(
- border: OutlineInputBorder(
- borderSide: BorderSide(
- color: Colors.black26,
- ),
- borderRadius: BorderRadius.circular(13),
- ),
- ),
- ),
- ),
- ]),
- SizedBox(
- height: 20,
- ),
- Row(
- children: <Widget>[
- PageLoginButton(
- butonWidth: 155,
- butonIcon: Icon(Icons.add_circle_outline),
- butonText: "İsim Ekle",
- textColor: Color(0xFF454443),
- radius: 20,
- butonColor: Colors.white,
- onPressed: () {
- _userNameGuncelle(context);
- },
- ),
- Padding(
- padding: const EdgeInsets.only(left: 18.0),
- child: PageLoginButton(
- butonWidth: 155,
- butonIcon: Icon(Icons.add_circle_outline),
- butonText: "Puan Ekle",
- textColor: Color(0xFF454443),
- radius: 20,
- butonColor: Colors.white,
- onPressed: () {},
- ),
- ),
- ],
- ),
- SizedBox(
- height: 25,
- ),
- Center(
- child: Card(
- color: Colors.black26,
- margin: EdgeInsets.all(18),
- elevation: 17,
- child: ListTile(
- leading: CircleAvatar(
- child: Icon(Icons.person_outline),
- radius: 12,
- ),
- title: Text("İnputtan Gelen Text"),
- trailing: Icon(
- Icons.whatshot,
- color: Colors.red,
- ),
- ),
- ),
- ),
- Center(
- child: Card(
- color: Colors.black26,
- margin: EdgeInsets.all(18),
- elevation: 17,
- child: ListTile(
- leading: CircleAvatar(
- child: Icon(Icons.person_outline),
- radius: 12,
- ),
- title: Text("İnputtan Gelen Text"),
- trailing: Icon(
- Icons.whatshot,
- color: Colors.red,
- ),
- ),
- ),
- ),
- Center(
- child: Card(
- color: Colors.black26,
- margin: EdgeInsets.all(18),
- elevation: 17,
- child: ListTile(
- leading: CircleAvatar(
- child: Icon(Icons.person_outline),
- radius: 12,
- ),
- title: Text("İnputtan Gelen Text"),
- trailing: Icon(
- Icons.whatshot,
- color: Colors.red,
- ),
- ),
- ),
- ),
- Center(
- child: Card(
- color: Colors.black26,
- margin: EdgeInsets.all(18),
- elevation: 17,
- child: ListTile(
- leading: CircleAvatar(
- child: Icon(Icons.person_outline),
- radius: 12,
- ),
- title: Text("İnputtan Gelen Text"),
- trailing: Icon(
- Icons.whatshot,
- color: Colors.red,
- ),
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- ),