mirrored_repositories/evil_word/lib/presentation/home_page
import 'package:evil_word/domain/entities/joke_entity.dart';
import 'package:flutter/material.dart';

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

  final JokeEntity jokeEntity;

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Material(
        elevation: 1,
        color: Colors.transparent,
        shadowColor: Theme.of(context).colorScheme.secondary,
        child: Container(
          padding: const EdgeInsets.all(7),
          decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(10),
            border: Border.all(
              width: 3,
              color: Theme.of(context).colorScheme.secondary,
            ),
          ),
          child: Text(
            "${jokeEntity.insult}.",
            softWrap: true,
            textAlign: TextAlign.center,
            style: const TextStyle(
              fontSize: 25,
              fontWeight: FontWeight.w400,
              color: Colors.white,
            ),
          ),
        ),
      ),
    );
  }
}
