🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / FLUTTER / FloatingActionButton hazır widget kullanımı

1-) FLUTTER - FloatingActionButton hazır widget kullanımı

 

 

1-) Resimli Float Action Button

 

 

Scaffold(
  floatingActionButton:
FloatingActionButton.extended(
    onPressed: () {
      
// Add your onPressed code here!
    
},
    label:
Text('Approve'),
    icon:
Icon(Icons.thumb_up),
    backgroundColor:
Colors.pink,
  ),

)

 

 

 

 

2-) NORMAL Float Action Button

 

 

floatingActionButton: FloatingActionButton(
onPressed: () {
// Add your onPressed code here!
},
backgroundColor:
Colors.green,
child:
Icon(Icons.navigation),
),

 

 

 

 

3-) SOLA YASLAMAK

 

 

 

floatingActionButton: FloatingActionButton(
  onPressed: () {
    
StatikSinif.urlTemizle().then((value) {
      
Navigator.of(context).pushAndRemoveUntil(
          
MaterialPageRoute(builder: (context) => MyApp()),
          (r) =>
false);
    });
  },
  tooltip:
'Logout',
  child:
Icon(Icons.logout),
),
floatingActionButtonLocation:
    
FloatingActionButtonLocation.startFloat,
body:  androidWebViewContent(),

 

 

 

 

 

 

 

 2023 Mart 19 Pazar
 510