veilidchat/lib/components/empty_contact_list_widget.dart

36 lines
996 B
Dart
Raw Normal View History

2023-07-28 20:36:05 -04:00
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
2023-07-29 10:55:35 -04:00
import 'package:flutter_translate/flutter_translate.dart';
2023-07-28 20:36:05 -04:00
2023-08-05 01:00:46 -04:00
import '../tools/tools.dart';
2023-07-29 10:55:35 -04:00
class EmptyContactListWidget extends ConsumerWidget {
const EmptyContactListWidget({super.key});
2023-07-28 20:36:05 -04:00
@override
// ignore: prefer_expression_function_bodies
Widget build(BuildContext context, WidgetRef ref) {
2023-08-05 01:00:46 -04:00
final theme = Theme.of(context);
final textTheme = theme.textTheme;
final scale = theme.extension<ScaleScheme>()!;
return Column(
2023-09-23 22:19:53 -04:00
mainAxisSize: MainAxisSize.min,
2023-08-05 01:00:46 -04:00
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
Icons.person_add_sharp,
2023-09-23 12:56:54 -04:00
color: scale.primaryScale.subtleBorder,
2023-08-05 01:00:46 -04:00
size: 48,
),
Text(
2023-08-06 19:46:40 -04:00
translate('contact_list.invite_people'),
2023-08-05 01:00:46 -04:00
style: textTheme.bodyMedium?.copyWith(
2023-09-23 12:56:54 -04:00
color: scale.primaryScale.subtleBorder,
2023-07-28 20:36:05 -04:00
),
2023-08-05 01:00:46 -04:00
),
],
2023-07-28 20:36:05 -04:00
);
}
}