Add profile fetch cancel

This commit is contained in:
problematicconsumer
2024-01-04 21:35:04 +03:30
parent 5fcd3e819f
commit 6096c1c1ea
3 changed files with 48 additions and 10 deletions

View File

@@ -76,6 +76,15 @@ class AddProfileModal extends HookConsumerWidget {
const LinearProgressIndicator(
backgroundColor: Colors.transparent,
),
const Gap(8),
TextButton(
onPressed: () {
ref.invalidate(addProfileProvider);
},
child: Text(
MaterialLocalizations.of(context).cancelButtonLabel,
),
),
],
),
),