Skip to content

Commit

Permalink
added cross button to remove selected buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-khewle committed Jul 8, 2024
1 parent b937b66 commit 1bef4e8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/new_ui/screens/railway_screen/railwayform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ class _RailwayForm extends ConsumerState<RailwayForm> {
idCardPhotoTemp = null;
} else if (type == 'Previous Pass Photo') {
previousPassPhotoTemp = null;
}else if(type == 'ID Card Back'){
idCardPhotoTemp2 = null;
}
});
}
Expand Down Expand Up @@ -401,6 +403,14 @@ class _RailwayForm extends ConsumerState<RailwayForm> {
children: [
Stack(
children: [
Positioned(
top: -8,
right: -8,
child: IconButton(
icon: const Icon(Icons.cancel, color: Colors.white),
onPressed: () => cancelSelection(type),
),
),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10.0),
Expand All @@ -418,7 +428,7 @@ class _RailwayForm extends ConsumerState<RailwayForm> {
top: -8,
right: -8,
child: IconButton(
icon: Icon(Icons.cancel, color: Colors.white),
icon: const Icon(Icons.cancel, color: Colors.white),
onPressed: () => cancelSelection(type),
),
)
Expand Down

0 comments on commit 1bef4e8

Please sign in to comment.