Skip to content

Commit

Permalink
fix: switch SpeedDial label orientation for right-to-left languages
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebraVogel94349 authored and adil192 committed Jul 31, 2024
1 parent 453fa02 commit 732bd92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/components/home/export_note_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class _ExportNoteButtonState extends State<ExportNoteButton> {
openCloseDial: isDialOpen,
childPadding: const EdgeInsets.all(5),
spaceBetweenChildren: 4,
switchLabelPosition: Directionality.of(context) == TextDirection.rtl,
dialRoot: (context, open, toggleChildren) {
return _currentlyExporting
? const SpinningLoadingIcon()
Expand Down
1 change: 1 addition & 0 deletions lib/components/home/new_note_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class _NewNoteButtonState extends State<NewNoteButton> {
openCloseDial: isDialOpen,
childPadding: const EdgeInsets.all(5),
spaceBetweenChildren: 4,
switchLabelPosition: Directionality.of(context) == TextDirection.rtl,
dialRoot: (ctx, open, toggleChildren) {
return FloatingActionButton(
shape: widget.cupertino ? const CircleBorder() : null,
Expand Down

0 comments on commit 732bd92

Please sign in to comment.