Skip to content

Commit

Permalink
Change Export Selected key shortcut
Browse files Browse the repository at this point in the history
Windows 10 has a recent known issue with ctrl-alt-shift-f
  • Loading branch information
gskinner committed May 26, 2020
1 parent c45bf4b commit 882b79c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- added robust 'Combine Shapes' feature on Groups
- check for reserved words in widget / param names
- warning for negative grid spacing
- keyboard shortcut for export selected widget (cmd/ctrl-opt-shift-f)
- keyboard shortcut for export selected widget (cmd/ctrl-shift-d)
- keyboard shortcut for copy to clipboard (cmd/ctrl-opt-c)
- note in example README that it should use the dev channel of Flutter

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ There are two primary ways you can work with it:


## Copy and paste
If you select any item in XD (except an Artboard or Component), you can click the "Copy Selected" button in the plugin panel to copy Dart code to your clipboard. You can then paste it into your project directly.
If you select any item in XD (except an Artboard or Component), you can click the "Copy Selected" button or menu item (`cmd/ctrl-opt-C`) in the plugin panel to copy Dart code to your clipboard. You can then paste it into your project directly.


## Export widgets
Artboards and Components can be exported as Flutter widgets that can be used in your project.

Select an artboard or component and click the "Export Widget" button. If you haven't already done so, you will be prompted to select your Flutter project's directory. The exported widget will be written to a dart file in the directory specified by the Code Path setting (defaults to "lib"). You can now instantiate and use that widget in your Flutter project.
Select an artboard or component and click the "Export Widget" button or menu item (`cmd/ctrl-shift-D`). If you haven't already done so, you will be prompted to select your Flutter project's directory. The exported widget will be written to a dart file in the directory specified by the Code Path setting (defaults to "lib"). You can now instantiate and use that widget in your Flutter project.

Use the "Export All Widgets" button or menu item (`cmd/ctrl-shift-F`) to export all artboards and components in the file that do not have "Include In Export All Widgets" unchecked.

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"label": "Export Selected Widget",
"commandId": "exportSelected",
"shortcut": {
"mac": "Cmd+Shift+Alt+F",
"win": "Ctrl+Shift+Alt+F"
"mac": "Cmd+Shift+D",
"win": "Ctrl+Shift+D"
}
},
{
Expand Down

0 comments on commit 882b79c

Please sign in to comment.