🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / FLUTTER / listtile ın row ve column a dönüşmüş şekli boşlukları kendin düzeltebilirsin

1-) FLUTTER - listtile ın row ve column a dönüşmüş şekli boşlukları kendin düzeltebilirsin

 

 

Widget cardContent(BankaModel banka) {
  
var widget = Card(
    shape:
RoundedRectangleBorder(
      borderRadius:
BorderRadius.all(Radius.circular(8.0)),
    ),
    child:
Container(
      height:
75,
      child:
Row(
        children: [
          
Padding(
            padding:
const EdgeInsets.all(8.0),
            child:
Image.network(banka.icon!),
          ),
          
Expanded(
            child:
Column(
              crossAxisAlignment:
CrossAxisAlignment.start,
              mainAxisAlignment:
MainAxisAlignment.center,
              children: [
                
Text(
                  banka.
bankaIsim!,
                  style:
TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
                ),
                
Text(
                  banka.
ibanSahibi!,
                  style:
TextStyle(fontWeight: FontWeight.bold, fontSize: 14),
                ),
                
Text(
                  banka.
ibanNo!,
                  style:
GoogleFonts.robotoMono(fontSize: 14,fontWeight: FontWeight.bold,),
                ),
              ],
            ),
          ),
          
// Trailing (Kopyala butonu)
          
InkWell(
            onTap: () {
              banka.
kopyala = true;
              kopyala(banka.
ibanNo!);
              yenile(banka);
            },
            child:
Container(
              margin:
EdgeInsets.all(0),
              decoration:
BoxDecoration(
                color: banka.
kopyala == true ? Colors.red : Colors.blue,
                borderRadius:
BorderRadius.circular(10),
              ),
              width:
75,
              child:
Column(
                children: [
                  
Expanded(
                    child:
Icon(
                      
Icons.copy,
                      color:
Colors.white,
                    ),
                  ),
                  
Expanded(
                    child:
Text(
                      banka.
kopyala == true ? "KOPYALANDI" : "IBAN\nKOPYALA",
                      textAlign:
TextAlign.center,
                      style:
TextStyle(
                        fontSize:
10,
                        fontWeight:
FontWeight.bold,
                        color:
Colors.white,
                      ),
                    ),
                  ),
                ],
              ),
            ),
          ),
        ],
      ),
    ),
  );

  
return widget;
}

 

 

 

 2023 Ekim 15 Pazar
 208