Facebook
From Mehmet ali, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 129
  1.   Widget build(BuildContext context) {
  2.     _controllerUserName.text = User.userName;
  3.     print("Profildeki User Değerleri" + User.userName.toString());
  4.     User _userModel = Provider.of<User>(context);
  5.     return Scaffold(
  6.       appBar: AppBar(
  7.         actions: <Widget>[
  8.           Padding(
  9.             padding: const EdgeInsets.only(right: 150),
  10.             child: Center(
  11.               child: Text(
  12.                 "101 Hesapla",
  13.                 style: TextStyle(
  14.                   fontSize: 20,
  15.                   color: Colors.white70,
  16.                   fontWeight: FontWeight.bold,
  17.                 ),
  18.               ),
  19.             ),
  20.           ),
  21.         ],
  22.         title: Container(
  23.           alignment: Alignment.bottomCenter,
  24.         ),
  25.         backgroundColor: Colors.transparent,
  26.         elevation: 0.0,
  27.       ),
  28.       extendBodyBehindAppBar: true,
  29.       body: SingleChildScrollView(
  30.         child: Container(
  31.           color: Color(0xFF454443),
  32.           child: Padding(
  33.             padding: const EdgeInsets.only(
  34.                 top: 100, right: 40, left: 40, bottom: 80),
  35.             child: Column(
  36.               children: <Widget>[
  37.                 Row(children: [
  38.                   Flexible(
  39.                     child: TextField(
  40.                       // controller: _newVal,
  41.                       focusNode: f1,
  42.                       keyboardType: TextInputType.emailAddress,
  43.                       onChanged: (String newVal) {
  44.                         if (newVal.length == 6) {
  45.                           f1.unfocus();
  46.                           FocusScope.of(context).requestFocus(f2);
  47.                         }
  48.                       },
  49.                       decoration: InputDecoration(
  50.                         border: OutlineInputBorder(
  51.                           borderSide: BorderSide(
  52.                             color: Colors.black26,
  53.                           ),
  54.                           borderRadius: BorderRadius.circular(13),
  55.                         ),
  56.                       ),
  57.                       controller: _controllerUserName,
  58.                     ),
  59.                   ),
  60.                   Flexible(
  61.                     child: TextField(
  62.                       focusNode: f2,
  63.                       keyboardType: TextInputType.emailAddress,
  64.                       onChanged: (String newVal) {
  65.                         if (newVal.length == 6) {
  66.                           f2.unfocus();
  67.                           FocusScope.of(context).requestFocus(f3);
  68.                         }
  69.                       },
  70.                       decoration: InputDecoration(
  71.                         border: OutlineInputBorder(
  72.                           borderSide: BorderSide(
  73.                             color: Colors.black26,
  74.                           ),
  75.                           borderRadius: BorderRadius.circular(13),
  76.                         ),
  77.                       ),
  78.                     ),
  79.                   ),
  80.                 ]),
  81.                 SizedBox(
  82.                   height: 20,
  83.                 ),
  84.                 Row(
  85.                   children: <Widget>[
  86.                     PageLoginButton(
  87.                       butonWidth: 155,
  88.                       butonIcon: Icon(Icons.add_circle_outline),
  89.                       butonText: "İsim Ekle",
  90.                       textColor: Color(0xFF454443),
  91.                       radius: 20,
  92.                       butonColor: Colors.white,
  93.                       onPressed: () {
  94.                         _userNameGuncelle(context);
  95.                       },
  96.                     ),
  97.                     Padding(
  98.                       padding: const EdgeInsets.only(left: 18.0),
  99.                       child: PageLoginButton(
  100.                         butonWidth: 155,
  101.                         butonIcon: Icon(Icons.add_circle_outline),
  102.                         butonText: "Puan Ekle",
  103.                         textColor: Color(0xFF454443),
  104.                         radius: 20,
  105.                         butonColor: Colors.white,
  106.                         onPressed: () {},
  107.                       ),
  108.                     ),
  109.                   ],
  110.                 ),
  111.                 SizedBox(
  112.                   height: 25,
  113.                 ),
  114.                 Center(
  115.                   child: Card(
  116.                     color: Colors.black26,
  117.                     margin: EdgeInsets.all(18),
  118.                     elevation: 17,
  119.                     child: ListTile(
  120.                       leading: CircleAvatar(
  121.                         child: Icon(Icons.person_outline),
  122.                         radius: 12,
  123.                       ),
  124.                       title: Text("İnputtan Gelen Text"),
  125.                       trailing: Icon(
  126.                         Icons.whatshot,
  127.                         color: Colors.red,
  128.                       ),
  129.                     ),
  130.                   ),
  131.                 ),
  132.                 Center(
  133.                   child: Card(
  134.                     color: Colors.black26,
  135.                     margin: EdgeInsets.all(18),
  136.                     elevation: 17,
  137.                     child: ListTile(
  138.                       leading: CircleAvatar(
  139.                         child: Icon(Icons.person_outline),
  140.                         radius: 12,
  141.                       ),
  142.                       title: Text("İnputtan Gelen Text"),
  143.                       trailing: Icon(
  144.                         Icons.whatshot,
  145.                         color: Colors.red,
  146.                       ),
  147.                     ),
  148.                   ),
  149.                 ),
  150.                 Center(
  151.                   child: Card(
  152.                     color: Colors.black26,
  153.                     margin: EdgeInsets.all(18),
  154.                     elevation: 17,
  155.                     child: ListTile(
  156.                       leading: CircleAvatar(
  157.                         child: Icon(Icons.person_outline),
  158.                         radius: 12,
  159.                       ),
  160.                       title: Text("İnputtan Gelen Text"),
  161.                       trailing: Icon(
  162.                         Icons.whatshot,
  163.                         color: Colors.red,
  164.                       ),
  165.                     ),
  166.                   ),
  167.                 ),
  168.                 Center(
  169.                   child: Card(
  170.                     color: Colors.black26,
  171.                     margin: EdgeInsets.all(18),
  172.                     elevation: 17,
  173.                     child: ListTile(
  174.                       leading: CircleAvatar(
  175.                         child: Icon(Icons.person_outline),
  176.                         radius: 12,
  177.                       ),
  178.                       title: Text("İnputtan Gelen Text"),
  179.                       trailing: Icon(
  180.                         Icons.whatshot,
  181.                         color: Colors.red,
  182.                       ),
  183.                     ),
  184.                   ),
  185.                 ),
  186.               ],
  187.             ),
  188.           ),
  189.         ),
  190.       ),