noInternetView static method
dynamic
noInternetView(
- dynamic controller
Implementation
static noInternetView(controller) {
return Scaffold(
body: Center(
child:Column(
mainAxisAlignment: MainAxisAlignment.center,
children:[
Icon(Icons.wifi_off,size: 80.0,color: CommonColors.imageDesColor,),
commonText(oopsStr,
style: GoogleFonts.roboto(
fontSize: font_20, color: CommonColors.imageTitleColor,fontWeight: FontWeight.w800)),
commonText(noInternetDes,
align:TextAlign.center,
style: GoogleFonts.roboto(
fontSize: font_14, color: CommonColors.imageTitleColor)),
sizedBox(height: margin_20),
OutlinedButton(
onPressed: (){
controller.update();
},
style: OutlinedButton.styleFrom(
side: BorderSide(color:CommonColors.borderColor)
),
child: commonText(tryAgainStr,fontWeight: FontWeight.w600))
]
)),
);
}