veilidchat/lib/components/empty_contact_list_widget.dart

35 lines
946 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(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
Icons.person_add_sharp,
color: scale.primaryScale.border,
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(
color: scale.primaryScale.border,
2023-07-28 20:36:05 -04:00
),
2023-08-05 01:00:46 -04:00
),
],
2023-07-28 20:36:05 -04:00
);
}
}