🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / FLUTTER / PopupMenuButton popup menu kullanımı List View ile vs kullanabilirsin

1-) FLUTTER - PopupMenuButton popup menu kullanımı List View ile vs kullanabilirsin

 

AÇIKLAMA :

 

Herhangi bir widget'i PopupMenuButton ile sarmalayabilirsin. bu sayede ona tıklayınca popup menü açılır

 

 

child: PopupMenuButton(
    itemBuilder: (_) => <
PopupMenuItem<String>>[
      
PopupMenuItem<String>(
          child:
Text('Doge'), value: 'Doge'),
      
PopupMenuItem<String>(
          child:
Text('Lion'), value: 'Lion'),
    ],
    onSelected: (value) {

      print(value);

      
EasyLoading.showToast(model.bankaName!);

    },

  child:
Padding(
    padding:
EdgeInsets.all(2),
    child:
Container(
      child: getColumnItem(model),
    ),
  ),
),

 

 

 

 

 2022 Aralık 03 Cumartesi
 328