fluffychat/lib/pangea/common/widgets/error_indicator.dart
Kelrap 657b652bc2
Fix activity timeout overflow (#3442)
* Fix activity timeout overflow

* chore: wrap error message

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
2025-07-11 16:43:09 -04:00

36 lines
742 B
Dart

import 'package:flutter/material.dart';
class ErrorIndicator extends StatelessWidget {
final String message;
final double? iconSize;
final TextStyle? style;
const ErrorIndicator({
super.key,
required this.message,
this.iconSize,
this.style,
});
@override
Widget build(BuildContext context) {
return Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.error,
color: Theme.of(context).colorScheme.error,
size: iconSize ?? 24.0,
),
const SizedBox(width: 8),
Flexible(
child: Text(
message,
style: style,
textAlign: TextAlign.center,
),
),
],
);
}
}