veilidchat/lib/chat/views/no_conversation_widget.dart

42 lines
1.1 KiB
Dart
Raw Normal View History

2024-01-09 20:58:27 -05:00
import 'package:flutter/material.dart';
2024-06-02 11:04:19 -04:00
import 'package:flutter_translate/flutter_translate.dart';
import '../../theme/models/scale_scheme.dart';
2024-01-09 20:58:27 -05:00
2024-02-08 21:05:59 -05:00
class NoConversationWidget extends StatelessWidget {
const NoConversationWidget({super.key});
2024-01-09 20:58:27 -05:00
@override
// ignore: prefer_expression_function_bodies
Widget build(
BuildContext context,
2024-06-02 11:04:19 -04:00
) {
final theme = Theme.of(context);
final scale = theme.extension<ScaleScheme>()!;
2024-07-08 21:29:52 -04:00
return DecoratedBox(
2024-06-02 11:04:19 -04:00
decoration: BoxDecoration(
2024-07-08 21:29:52 -04:00
color: scale.primaryScale.appBackground,
2024-06-02 11:04:19 -04:00
),
child: Column(
2024-07-09 13:27:54 -04:00
crossAxisAlignment: CrossAxisAlignment.stretch,
2024-06-02 11:04:19 -04:00
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
Icons.diversity_3,
color: scale.primaryScale.subtleBorder,
size: 48,
),
Text(
2024-07-08 21:29:52 -04:00
textAlign: TextAlign.center,
2024-06-02 11:04:19 -04:00
translate('chat.start_a_conversation'),
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: scale.primaryScale.subtleBorder,
),
),
],
),
);
}
2024-01-09 20:58:27 -05:00
}