Kod:Panoya kopyala import 'package:flutter/material. dart'; import 'package:socialmaps/Mobil/screens/Home/home. dart'; import 'package:socialmaps/Mobil/Giris/UyeOl/KullaniciAdi. dart'; class Login extends StatefulWidget class _LoginState extends State<Login> { final _formKey = GlobalKey<FormState> ; bool isgozukme = true; @override Widget build { return Scaffold( resizeToAvoidBottomInset: true, body: Form( key: _formKey, child: Scaffold( body: Container( child: Column(children: [ SizedBox(height: 70), Center( child: Text( "SocialMaps", style: TextStyle(fontSize: 45, fontWeight: FontWeight. w400), ), ), SizedBox(height: 30), ////////////// Container( width: 350, child: Theme( data: new ThemeData , child: TextFormField( keyboardType: TextInputType. emailAddress, validator: { if (value null || value. isEmpty || ! value. contains || ! value. contains || value. length < 8) else if (value. contains return null; }, decoration: new InputDecoration( labelText: "E-posta", fillColor: Colors. black, border: new OutlineInputBorder( borderRadius: new BorderRadius. circular(5.0), borderSide: new BorderSide , ), //fillColor: Colors. green ), style: new TextStyle , ), ), ), SizedBox(height: 7), ///////////// Container( width: 350, child: TextFormField( obscureText: isgozukme, keyboardType: TextInputType. visiblePassword, validator: { if (value null || value. length < 8) return null; }, decoration: new InputDecoration( labelText: "Password", fillColor: Colors. white, border: new OutlineInputBorder( borderRadius: new BorderRadius. circular(5.0), borderSide: new BorderSide , ), suffixIcon: InkWell( onTap: _togglePasswordView, child: Icon , ), ), ), ), SizedBox(height: 25), ElevatedButton( child: Container( decoration: new BoxDecoration( color: Colors. blue, borderRadius: BorderRadius. circular(5), ), width: 200, height: 50, child: Center( child: Text("GirisYap", style: TextStyle(fontSize: 25, color: Colors. white)))), onPressed: { if (_formKey. currentState!. validate }, ), SizedBox(height: 25), Center( child: Wrap( children: <Widget> , ), ) ]))))); } void _togglePasswordView { setState ); } } Son düzenleyen: Moderatör: 4 Şubat 2023