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

36 lines
891 B
Dart
Raw Normal View History

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