Skip to content

Commit

Permalink
Fix shape detection list tile not clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Jan 7, 2025
1 parent 4b6111f commit ca56284
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/lib/dialogs/background/dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class BackgroundDialog extends StatelessWidget {
onPressed: () => Navigator.of(context).pop(),
),
ElevatedButton(
child: Text(AppLocalizations.of(context).ok),
child: Text(AppLocalizations.of(context).save),
onPressed: () {
context.read<DocumentBloc>().add(DocumentBackgroundsChanged(
[if (background != null) background!]));
Expand Down
4 changes: 1 addition & 3 deletions app/lib/dialogs/constraints.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,12 @@ class _ConstraintsViewState extends State<ConstraintsView> {
children: [
ExpansionPanel(
isExpanded: opened,
canTapOnHeader: true,
headerBuilder: (context, isExpanded) => Wrap(
children: [
ListTile(
title: Text(AppLocalizations.of(context).constraints),
leading: const PhosphorIcon(PhosphorIconsLight.selection),
onTap: () => setState(() {
opened = !isExpanded;
}),
trailing: DropdownMenu<String>(
dropdownMenuEntries: all.entries
.map((e) => DropdownMenuEntry(
Expand Down
1 change: 1 addition & 0 deletions app/lib/dialogs/sync.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class _SyncDialogState extends State<SyncDialog> {
children: [
...service.syncs.asMap().entries.map((entry) =>
ExpansionPanel(
canTapOnHeader: true,
isExpanded: _openedPanels.contains(entry.key),
headerBuilder: (context, isExpanded) =>
ListTile(
Expand Down
1 change: 1 addition & 0 deletions app/lib/selections/tools/pen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class __ShapeDetectionViewState extends State<_ShapeDetectionView> {
},
children: [
ExpansionPanel(
canTapOnHeader: true,
headerBuilder: (BuildContext context, bool isExpanded) {
return ListTile(
title: Text(AppLocalizations.of(context).shapeDetection),
Expand Down

0 comments on commit ca56284

Please sign in to comment.