forked from axiom-team/gecko
21 lines
618 B
Dart
21 lines
618 B
Dart
|
import 'package:flutter/cupertino.dart';
|
||
|
// import 'package:readwenderlich/ui/exception_indicators/exception_indicator.dart';
|
||
|
|
||
|
/// Indicates that a connection error occurred.
|
||
|
class NoConnectionIndicator extends StatelessWidget {
|
||
|
const NoConnectionIndicator({
|
||
|
Key key,
|
||
|
this.onTryAgain,
|
||
|
}) : super(key: key);
|
||
|
|
||
|
final VoidCallback onTryAgain;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) => ExceptionIndicator(
|
||
|
title: 'No connection',
|
||
|
message: 'Please check internet connection and try again.',
|
||
|
assetName: 'assets/frustrated-face.png',
|
||
|
onTryAgain: onTryAgain,
|
||
|
);
|
||
|
}
|