diff --git a/app/lib/dialogs/background/dialog.dart b/app/lib/dialogs/background/dialog.dart index 885627ca7af9..ba88b0a685a2 100644 --- a/app/lib/dialogs/background/dialog.dart +++ b/app/lib/dialogs/background/dialog.dart @@ -105,7 +105,7 @@ class BackgroundDialog extends StatelessWidget { onPressed: () => Navigator.of(context).pop(), ), ElevatedButton( - child: Text(MaterialLocalizations.of(context).okButtonLabel), + child: Text(AppLocalizations.of(context).save), onPressed: () { context.read().add(DocumentBackgroundsChanged( [if (background != null) background!])); diff --git a/app/lib/dialogs/constraints.dart b/app/lib/dialogs/constraints.dart index 86c2c9996578..1facb32815d8 100644 --- a/app/lib/dialogs/constraints.dart +++ b/app/lib/dialogs/constraints.dart @@ -67,14 +67,12 @@ class _ConstraintsViewState extends State { 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( dropdownMenuEntries: all.entries .map((e) => DropdownMenuEntry( diff --git a/app/lib/dialogs/sync.dart b/app/lib/dialogs/sync.dart index d3c6f513f8f0..bfc28ad700aa 100644 --- a/app/lib/dialogs/sync.dart +++ b/app/lib/dialogs/sync.dart @@ -62,6 +62,7 @@ class _SyncDialogState extends State { children: [ ...service.syncs.asMap().entries.map((entry) => ExpansionPanel( + canTapOnHeader: true, isExpanded: _openedPanels.contains(entry.key), headerBuilder: (context, isExpanded) => ListTile( diff --git a/app/lib/selections/tools/pen.dart b/app/lib/selections/tools/pen.dart index 8efe4e266f57..cada4649385a 100644 --- a/app/lib/selections/tools/pen.dart +++ b/app/lib/selections/tools/pen.dart @@ -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), diff --git a/metadata/en-US/changelogs/127.txt b/metadata/en-US/changelogs/127.txt index 11d4d5a140e0..3f44711052a3 100644 --- a/metadata/en-US/changelogs/127.txt +++ b/metadata/en-US/changelogs/127.txt @@ -19,5 +19,6 @@ * Fix grid not working correctly * Fix capture thumbnail uses wrong position * Fix zoom slider is not centered +* Fix shape detection list tile not clickable Read more here: https://linwood.dev/butterfly/2.3.0-beta.0 \ No newline at end of file