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 4, 2025
1 parent 10495be commit 7ebb51c
Show file tree
Hide file tree
Showing 5 changed files with 5 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 @@ -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<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 @@ -62,6 +62,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
1 change: 1 addition & 0 deletions metadata/en-US/changelogs/127.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7ebb51c

Please sign in to comment.