selfprivacy.org.app/lib/ui/pages/users/empty.dart

34 lines
931 B
Dart
Raw Normal View History

2021-01-06 17:35:57 +00:00
part of 'users.dart';
class _NoUsers extends StatelessWidget {
const _NoUsers({required this.text});
2021-01-06 17:35:57 +00:00
final String text;
@override
Widget build(final BuildContext context) => Padding(
padding: const EdgeInsets.symmetric(horizontal: 20),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(BrandIcons.users, size: 50, color: BrandColors.grey7),
const SizedBox(height: 20),
BrandText.h2(
'users.nobody_here'.tr(),
style: const TextStyle(
color: BrandColors.grey7,
),
2021-01-06 17:35:57 +00:00
),
const SizedBox(height: 10),
BrandText.medium(
text,
textAlign: TextAlign.center,
style: const TextStyle(
color: BrandColors.grey7,
),
2021-01-06 17:35:57 +00:00
),
],
),
);
2021-01-06 17:35:57 +00:00
}