Commit 1c0a67e1 authored by Dio Maulana's avatar Dio Maulana

error view

parent 1e4420e6
class ErrorWidgetArguments {
String errorMessage;
ErrorWidgetArguments({required this.errorMessage});
}
// ignore_for_file: sized_box_for_whitespace
import 'package:flutter/material.dart';
import 'package:tour_travel_agr/helper/widget_responsive.dart';
import 'package:tour_travel_agr/resource/colors.dart';
import 'package:tour_travel_agr/resource/size.dart';
import 'package:tour_travel_agr/resource/style.dart';
class ErrorWidgetView extends StatelessWidget {
const ErrorWidgetView({super.key, required this.messageError});
final String messageError;
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: ColorManager.backgroundColor,
body: ScreenResponsive(
widget: Container(
width: double.infinity,
height: double.infinity,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
margin: EdgeInsets.symmetric(horizontal: AppMargin.m20),
child: const Icon(
Icons.dangerous_outlined,
color: Colors.red,
size: 150,
),
),
Padding(
padding: EdgeInsets.symmetric(
horizontal: AppPadding.p20,
),
child: Text(
messageError,
style: getBoldStyle(
color: Colors.black,
fontSize: 16,
),
textAlign: TextAlign.center,
),
),
],
),
),
widthScreen: MediaQuery.of(context).size.width,
),
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment