28 lines
885 B
Dart
28 lines
885 B
Dart
import 'package:didvan/views/widgets/state_handlers/empty_state.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class EmptyConnection extends StatelessWidget {
|
|
final VoidCallback onRetry;
|
|
const EmptyConnection({Key? key, required this.onRetry}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
children: [
|
|
const SizedBox(
|
|
height: 65,
|
|
),
|
|
EmptyState(
|
|
asset: 'lib/assets/images/empty_states/Connection.png',
|
|
height: 550,
|
|
title: 'اتصال اینترنت برقرار نیست',
|
|
titleColor: const Color.fromARGB(255, 0, 126, 167),
|
|
action: onRetry,
|
|
subtitle: 'لطفاً اتصال وایفای یا داده تلفن همراه خود را بررسی کنید.',
|
|
buttonTitle: 'تلاش مجدد',
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|