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: [
|
2023-03-27 17:02:44 +00:00
|
|
|
Icon(
|
|
|
|
BrandIcons.users,
|
|
|
|
size: 50,
|
|
|
|
color: Theme.of(context).colorScheme.onBackground,
|
|
|
|
),
|
2022-06-05 22:40:34 +00:00
|
|
|
const SizedBox(height: 20),
|
2023-03-27 17:02:44 +00:00
|
|
|
Text(
|
2022-06-05 22:40:34 +00:00
|
|
|
'users.nobody_here'.tr(),
|
2023-03-27 17:02:44 +00:00
|
|
|
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
|
|
|
|
color: Theme.of(context).colorScheme.onBackground,
|
|
|
|
),
|
2021-01-06 17:35:57 +00:00
|
|
|
),
|
2022-06-05 22:40:34 +00:00
|
|
|
const SizedBox(height: 10),
|
2023-03-27 17:02:44 +00:00
|
|
|
Text(
|
2022-06-05 22:40:34 +00:00
|
|
|
text,
|
|
|
|
textAlign: TextAlign.center,
|
2023-03-27 17:02:44 +00:00
|
|
|
style: Theme.of(context).textTheme.titleSmall?.copyWith(
|
|
|
|
color: Theme.of(context).colorScheme.onBackground,
|
|
|
|
),
|
2021-01-06 17:35:57 +00:00
|
|
|
),
|
2022-06-05 22:40:34 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
2021-01-06 17:35:57 +00:00
|
|
|
}
|
2022-09-05 10:51:01 +00:00
|
|
|
|
|
|
|
class _CouldNotLoadUsers extends StatelessWidget {
|
|
|
|
const _CouldNotLoadUsers({required this.text});
|
|
|
|
|
|
|
|
final String text;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(final BuildContext context) => Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
2023-03-27 17:02:44 +00:00
|
|
|
Icon(
|
|
|
|
BrandIcons.users,
|
|
|
|
size: 50,
|
|
|
|
color: Theme.of(context).colorScheme.onBackground,
|
|
|
|
),
|
2022-09-05 10:51:01 +00:00
|
|
|
const SizedBox(height: 20),
|
2023-03-27 17:02:44 +00:00
|
|
|
Text(
|
2022-09-05 10:51:01 +00:00
|
|
|
'users.could_not_fetch_users'.tr(),
|
2023-03-27 17:02:44 +00:00
|
|
|
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
|
|
|
|
color: Theme.of(context).colorScheme.onBackground,
|
|
|
|
),
|
2022-09-05 10:51:01 +00:00
|
|
|
),
|
|
|
|
const SizedBox(height: 10),
|
2023-03-27 17:02:44 +00:00
|
|
|
Text(
|
2022-09-05 10:51:01 +00:00
|
|
|
text,
|
|
|
|
textAlign: TextAlign.center,
|
2023-03-27 17:02:44 +00:00
|
|
|
style: Theme.of(context).textTheme.titleSmall?.copyWith(
|
|
|
|
color: Theme.of(context).colorScheme.onBackground,
|
|
|
|
),
|
2022-09-05 10:51:01 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|