2024-01-09 20:58:27 -05:00
|
|
|
import 'package:flutter/material.dart';
|
2024-04-12 20:55:05 -04:00
|
|
|
import 'package:flutter_translate/flutter_translate.dart';
|
|
|
|
|
|
|
|
import '../../theme/theme.dart';
|
2024-01-09 20:58:27 -05:00
|
|
|
|
|
|
|
class EmptyChatWidget extends StatelessWidget {
|
|
|
|
const EmptyChatWidget({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
// ignore: prefer_expression_function_bodies
|
|
|
|
Widget build(
|
|
|
|
BuildContext context,
|
2024-04-12 20:55:05 -04:00
|
|
|
) {
|
|
|
|
final theme = Theme.of(context);
|
|
|
|
final scale = theme.extension<ScaleScheme>()!;
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Icon(
|
|
|
|
Icons.chat,
|
|
|
|
color: scale.primaryScale.subtleBorder,
|
|
|
|
size: 48,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
translate('chat.say_something'),
|
|
|
|
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
|
|
|
color: scale.primaryScale.subtleBorder,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
2024-01-09 20:58:27 -05:00
|
|
|
}
|