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.
RSGDoctorApp/lib/widgets/shared/errors/error_message.dart

42 lines
996 B
Dart

5 years ago
import 'package:flutter/material.dart';
import '../app_texts_widget.dart';
class ErrorMessage extends StatelessWidget {
const ErrorMessage({
Key? key,
required this.error,
5 years ago
}) : super(key: key);
final String error;
@override
Widget build(BuildContext context) {
5 years ago
return SingleChildScrollView(
child: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(
height: 100,
),
5 years ago
Image.asset('assets/images/no-data.png'),
Center(
child: Center(
child: Padding(
padding: const EdgeInsets.only(top: 12, bottom: 12, right: 20, left: 30),
child: Center(
child: AppText(
error,
textAlign: TextAlign.center,
)),
5 years ago
),
5 years ago
),
5 years ago
)
],
),
5 years ago
),
);
}
}