You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
688 B
Dart
27 lines
688 B
Dart
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
///show App Embedded Error
|
|
/// [error] the message we show to the user
|
|
class AppEmbeddedError extends StatelessWidget {
|
|
const AppEmbeddedError({
|
|
Key key,
|
|
@required this.error,
|
|
}) : super(key: key);
|
|
|
|
final String error;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
// return Center(
|
|
// child: Texts(
|
|
// error,
|
|
// color: Theme.of(context).errorColor,
|
|
// textAlign: TextAlign.center,
|
|
// ),
|
|
// );
|
|
return Center(child: getNoDataWidget(context),);
|
|
}
|
|
}
|