From 33c2992ec38cfd61f8c03700659100949fe338f1 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Thu, 20 Apr 2023 10:08:54 +0530 Subject: [PATCH] Use IconButtonWidget instead of IconButton in RadiusPickerWidget --- .../viewer/location/edit_center_point_tile_widget.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ui/viewer/location/edit_center_point_tile_widget.dart b/lib/ui/viewer/location/edit_center_point_tile_widget.dart index 7611a9659..5a403ee3a 100644 --- a/lib/ui/viewer/location/edit_center_point_tile_widget.dart +++ b/lib/ui/viewer/location/edit_center_point_tile_widget.dart @@ -4,6 +4,7 @@ import "package:photos/models/file.dart"; import "package:photos/services/location_service.dart"; import "package:photos/states/location_state.dart"; import "package:photos/theme/ente_theme.dart"; +import "package:photos/ui/components/buttons/icon_button_widget.dart"; import "package:photos/ui/viewer/location/pick_center_point_widget.dart"; class EditCenterPointTileWidget extends StatelessWidget { @@ -50,8 +51,8 @@ class EditCenterPointTileWidget extends StatelessWidget { ), ), ), - IconButton( - onPressed: () async { + IconButtonWidget( + onTap: () async { final File? centerPointFile = await showPickCenterPointSheet( context, InheritedLocationTagData.of(context).locationTagEntity!, @@ -61,8 +62,8 @@ class EditCenterPointTileWidget extends StatelessWidget { .updateCenterPoint(centerPointFile.location!); } }, - icon: const Icon(Icons.edit), - color: getEnteColorScheme(context).strokeMuted, + icon: Icons.edit, + iconButtonType: IconButtonType.secondary, ), ], );