fix: missclicked on "Approve" button

pull/422/head
def 2024-01-18 15:31:07 +02:00
parent 79fae03e9b
commit 76d93ab782
1 changed files with 29 additions and 1 deletions

View File

@ -132,10 +132,38 @@ class _DomainPickerState extends State<DomainPicker> {
overflow: TextOverflow.ellipsis,
maxLines: 1,
),
),
)
],
),
],
if (state is Empty) ...[
const SizedBox(height: 30),
BrandButton.filled(
onPressed: () => context.read<DomainSetupCubit>().load(),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(
Icons.refresh,
color: Colors.white,
),
const SizedBox(width: 10),
Text(
'domain.update_list'.tr(),
style: Theme.of(context).textTheme.bodyLarge,
),
],
),
),
],
if (state is Loaded) ...[
const SizedBox(height: 32),
BrandButton.filled(
onPressed: () =>
context.read<DomainSetupCubit>().saveDomain(state.domain),
text: 'initializing.save_domain'.tr(),
),
],
],
),
);