kalfalarinOmer projelerin detay sayfalarının kodu da şu şekilde. aşağıya çıktının görüntüsünün linkini atıcam.
`class ProjeninDetaySayfasi extends StatefulWidget {
proDetSayTab proje;
ProjeninDetaySayfasi({Key key, this.proje}): super(key: key);
@override
State<StatefulWidget> createState() {
return ProjeninDetaySayfasiState();
}
}
class ProjeninDetaySayfasiState extends State {
final _formKey = GlobalKey<FormState>();
String unvan;
File _secilenresim;
//final picker = ImagePicker();
@override
Widget build(BuildContext context) {
return Scaffold(…..
body: Container(
Expanded(child: ListView.builder(
itemCount: proDetSayTablosu.length,
itemBuilder: (context, index)=>
ListTile(
leading: Icon(Icons.details),
title: Text(proDetSayTablosu[index].projeTabloBaslik, style: TextStyle(
color: Colors.blueGrey, fontSize: 15, fontStyle: FontStyle.italic, fontWeight: FontWeight.w500),),
subtitle: Text(proDetSayTablosu[index].projeAdi,
style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold, color: Colors.black),),
onLongPress: (){
if(AtaWidget.of(context).kullaniciadi == “ömer kalfa”){
TextEditingController kontrol = TextEditingController();
showDialog(
context: context,
builder: (BuildContext context){
return Form(
key: _formKey,
child: Container(
padding: EdgeInsets.only(right: 10, left: 10, top: 0, bottom: 250),
child: Align(
alignment: Alignment.topCenter,
child: SingleChildScrollView(
physics: ClampingScrollPhysics(),
child: AlertDialog(
title: Text(proDetSayTablosu[index].projeAdi),
content: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
ListTile(
leading: Icon(
Icons.announcement,
color: Colors.red,
),
title: Text("Güncellemelerinizi bitirdikten",
style: TextStyle(fontSize: 15, fontWeight: FontWeight.w500)),
),
TextFormField(
controller: kontrol,
decoration: InputDecoration(
labelText: proDetSayTablosu[index].projeAdi,
labelStyle: TextStyle(color: Colors.purple),
),
style: TextStyle(fontStyle: FontStyle.italic, fontSize: 17,),
),
],
),
actions: <Widget>[
MaterialButton(
color: Colors.blue,
child: Text("Güncelle"),
onPressed: (){
_formKey.currentState.save();
print(kontrol.text);
setState(() {
proDetSayTablosu[index].projeAdi=kontrol.text;
kontrol.clear();
Navigator.pop(context);
});
})
],
),
),
),
));
}
);
}
},
),
)
)
],
),
),
`