2021-01-06 17:35:57 +00:00
|
|
|
part of 'users.dart';
|
|
|
|
|
|
|
|
class _NoUsers extends StatelessWidget {
|
2022-06-05 22:40:34 +00:00
|
|
|
const _NoUsers({required this.text});
|
2021-01-06 17:35:57 +00:00
|
|
|
|
|
|
|
final String text;
|
|
|
|
|
|
|
|
@override
|
2022-06-05 22:40:34 +00:00
|
|
|
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
|
|
|
),
|
2022-06-05 22:40:34 +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
|
|
|
),
|
2022-06-05 22:40:34 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
2021-01-06 17:35:57 +00:00
|
|
|
}
|