From 3c7ce422a9f400c88606e5057f744ec587220d91 Mon Sep 17 00:00:00 2001 From: venbaittech Date: Fri, 12 Sep 2025 16:54:39 +0530 Subject: [PATCH] Upload Remove Option --- .../screens/UserManagement/Agent/agent.dart | 16 +++++++++++++++- lib/presentation/screens/login/login_screen.dart | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/presentation/screens/UserManagement/Agent/agent.dart b/lib/presentation/screens/UserManagement/Agent/agent.dart index cbe0329..19bcca2 100644 --- a/lib/presentation/screens/UserManagement/Agent/agent.dart +++ b/lib/presentation/screens/UserManagement/Agent/agent.dart @@ -541,9 +541,23 @@ class AgentState extends ConsumerState { if (docUploadedFile != null || passportFileUrlFromApi != null) Container( - color: Colors.white, + // color: Colors.white, child: Row( children: [ + IconButton( + onPressed: () { + setState(() { + docUploadedFile = null; + passportFileUrlFromApi = null; + selectedFileNames = null; + }); + }, + icon: Icon( + Icons.remove_circle_outline_rounded, + color: Colors.redAccent, + ), + tooltip: 'To Remove Upload', + ), GestureDetector( onTap: () => apiService.downloadFile( apiUrl: diff --git a/lib/presentation/screens/login/login_screen.dart b/lib/presentation/screens/login/login_screen.dart index 6f05dab..fae8d9d 100644 --- a/lib/presentation/screens/login/login_screen.dart +++ b/lib/presentation/screens/login/login_screen.dart @@ -715,7 +715,7 @@ class _LoginScreenState extends ConsumerState { ), const SizedBox(height: 10), const Text( - '${'"'}Manage vsdv your policies, track quotations, and grow your business all in one place.${'"'}', + '${'"'}Manage your policies, track quotations, and grow your business all in one place.${'"'}', textAlign: TextAlign.center, style: TextStyle( fontSize: 18,