mirrored_repositories/movie_app_trainee_task_orientations_flutter/lib/features/screens/movies_list/widgets/template_elements
import 'package:flutter/material.dart';

class ErrorScreenWidget extends StatelessWidget {
  const ErrorScreenWidget({
    Key? key,
    required this.errorText,
  }) : super(key: key);

  final String errorText;

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Text(
        errorText,
        style: Theme.of(context).textTheme.bodyMedium,
      ),
    );
  }
}
