veilidchat/lib/components/empty_contact_list_widget.dart

35 lines
999 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-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) {
//
return Container(
decoration: BoxDecoration(
color: Theme.of(context).scaffoldBackgroundColor,
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
2023-07-29 10:55:35 -04:00
Icons.person_add_sharp,
2023-07-28 20:36:05 -04:00
color: Theme.of(context).disabledColor,
size: 48,
),
Text(
2023-07-29 10:55:35 -04:00
translate('empty_contact_list.invite_people'),
2023-07-28 20:36:05 -04:00
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: Theme.of(context).disabledColor,
),
),
],
),
);
}
}