16 lines
360 B
Dart
16 lines
360 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
|
|
class ErrorMessage extends StatelessWidget {
|
|
final String error;
|
|
|
|
const ErrorMessage({super.key, required this.error});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => Text(
|
|
error,
|
|
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
|
color: Theme.of(context).colorScheme.error,
|
|
),
|
|
);
|
|
} |