Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NoInternetConnection.dart 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import 'package:flutter/material.dart';
  2. import 'package:google_fonts/google_fonts.dart';
  3. import 'package:lottie/lottie.dart';
  4. class NoInternetConnection extends StatefulWidget {
  5. const NoInternetConnection({Key? key}) : super(key: key);
  6. @override
  7. State<NoInternetConnection> createState() => _NoInternetConnectionState();
  8. }
  9. class _NoInternetConnectionState extends State<NoInternetConnection> {
  10. @override
  11. Widget build(BuildContext context) {
  12. return Container(
  13. child: Column(
  14. children: [
  15. SizedBox(
  16. width: 250,
  17. height: 250,
  18. child: LottieBuilder.asset(
  19. 'assets/animation/animation_no_internet.json',
  20. repeat: true),
  21. ),
  22. Text(
  23. "No Internet Connection",
  24. style: GoogleFonts.josefinSans(fontSize: 18),
  25. ),
  26. Padding(
  27. padding: EdgeInsets.all(15),
  28. child: Text(
  29. 'You Are Not Connected to The Internet. Please check your Wifi or Mobile Data!',
  30. style: GoogleFonts.zillaSlab(fontSize: 16),
  31. ),
  32. ),
  33. ],
  34. ),
  35. );
  36. }
  37. }