flutter-freaccess-hub/lib/pages/no_connection_page/no_connection_page.dart

33 lines
883 B
Dart

import 'package:flutter/material.dart';
class NoConnectionScreen extends StatelessWidget {
const NoConnectionScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Sem Conexão'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(Icons.signal_wifi_off, size: 80),
const SizedBox(height: 20),
const Text(
'Você está offline. Verifique sua conexão com a internet.'),
const SizedBox(height: 20),
ElevatedButton(
onPressed: () {
// Tente reconectar
},
child: const Text('Tentar Novamente'),
),
],
),
),
);
}
}