12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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<NoInternetConnection> createState() => _NoInternetConnectionState();
- }
-
- class _NoInternetConnectionState extends State<NoInternetConnection> {
- @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),
- ),
- ),
- ],
- ),
- );
- }
- }
|