import 'package:flutter/material.dart'; class ErrorPage extends StatefulWidget { final String? error; const ErrorPage({Key? key, this.error}) : super(key: key); @override _ErrorPageState createState() => _ErrorPageState(); } class _ErrorPageState extends State { @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Text( widget.error!, ), ), ); } }