🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / FLUTTER / toast mesaj kütüphanesi ve hazır paketler ve kullanımı vs

1-) FLUTTER - hazır paketler ve kullanımı vs

 

if(EasyLoading.isShow){
  print(
"zaten açık");
  
return ;
}

 

 

https://pub.dev/packages/flutter_easyloading

 

pubspec.yaml

 

dependencies:
  
flutter:
    
sdk: flutter
  
flutter_easyloading: ^3.0.3

 

EasyLoading.showToast(ogrenci.ad,duration: Duration(seconds: 1),dismissOnTap: true,toastPosition: EasyLoadingToastPosition.bottom);

 

 

dismissOnTap -> başka bir yere tıklanınca kapatılsın

 

AŞAĞIDAKİ VARSAYILAN CONFİG AYARLARINI YÜKLER

 

void main() {
  runApp(
MyApp());
  configLoading();
}
void configLoading() {
  
EasyLoading.instance
    
..displayDuration = const Duration(milliseconds: 2000)
    ..
indicatorType = EasyLoadingIndicatorType.fadingCircle
    
..loadingStyle = EasyLoadingStyle.dark
    
..indicatorSize = 45.0
    
..radius = 10.0
    
..progressColor = Colors.yellow
    
..backgroundColor = Colors.green
    
..indicatorColor = Colors.yellow
    
..textColor = Colors.yellow
    
..maskColor = Colors.blue.withOpacity(0.5)
    ..
userInteractions = true
    
..dismissOnTap = false;
}

 

return  MaterialApp(
  builder: EasyLoading.init(),

 home: BottomNavigationPage()
);

 

 

 2022 Kasım 30 Çarşamba
 389