Refactor: Change profile tab cancel actions to reset form state instead of navigating, and adjust agent availability UI.

This commit is contained in:
pradeepkumar
2026-03-15 22:40:24 +05:30
parent f6263b833c
commit aaed88d51d
5 changed files with 30 additions and 18 deletions

View File

@@ -438,16 +438,7 @@ class _AgentHomeContentState extends ConsumerState<_AgentHomeContent> {
),
),
const Spacer(),
if (_isTogglingAvailability && !isActive)
const SizedBox(
width: 16,
height: 16,
child: CircularProgressIndicator(
strokeWidth: 2,
color: AppColors.accentOrange,
),
)
else if (isActive)
if (isActive)
Text(
'Active',
style: TextStyle(