import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:lottie/lottie.dart'; class NoInternetConnection extends StatefulWidget { const NoInternetConnection({Key? key}) : super(key: key); @override State createState() => _NoInternetConnectionState(); } class _NoInternetConnectionState extends State { @override Widget build(BuildContext context) { return Container( child: Column( children: [ SizedBox( width: 250, height: 250, child: LottieBuilder.asset( 'assets/animation/animation_no_internet.json', repeat: true), ), Text( "No Internet Connection", style: GoogleFonts.josefinSans(fontSize: 18), ), Padding( padding: EdgeInsets.all(15), child: Text( 'You Are Not Connected to The Internet. Please check your Wifi or Mobile Data!', style: GoogleFonts.zillaSlab(fontSize: 16), ), ), ], ), ); } }