Use IconButtonWidget instead of IconButton in RadiusPickerWidget
This commit is contained in:
parent
7fa25e75e3
commit
33c2992ec3
|
@ -4,6 +4,7 @@ import "package:photos/models/file.dart";
|
||||||
import "package:photos/services/location_service.dart";
|
import "package:photos/services/location_service.dart";
|
||||||
import "package:photos/states/location_state.dart";
|
import "package:photos/states/location_state.dart";
|
||||||
import "package:photos/theme/ente_theme.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";
|
import "package:photos/ui/viewer/location/pick_center_point_widget.dart";
|
||||||
|
|
||||||
class EditCenterPointTileWidget extends StatelessWidget {
|
class EditCenterPointTileWidget extends StatelessWidget {
|
||||||
|
@ -50,8 +51,8 @@ class EditCenterPointTileWidget extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButtonWidget(
|
||||||
onPressed: () async {
|
onTap: () async {
|
||||||
final File? centerPointFile = await showPickCenterPointSheet(
|
final File? centerPointFile = await showPickCenterPointSheet(
|
||||||
context,
|
context,
|
||||||
InheritedLocationTagData.of(context).locationTagEntity!,
|
InheritedLocationTagData.of(context).locationTagEntity!,
|
||||||
|
@ -61,8 +62,8 @@ class EditCenterPointTileWidget extends StatelessWidget {
|
||||||
.updateCenterPoint(centerPointFile.location!);
|
.updateCenterPoint(centerPointFile.location!);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
icon: const Icon(Icons.edit),
|
icon: Icons.edit,
|
||||||
color: getEnteColorScheme(context).strokeMuted,
|
iconButtonType: IconButtonType.secondary,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue