Skip to content

Commit

Permalink
Tip 222
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Jan 8, 2025
1 parent 2cde269 commit b218300
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This repo now has a companion app! [Download it here](https://fluttertips.dev/)
| ID | View on GitHub (this repo) | X Post | LinkedIn Post | Bluesky Post | Link on [codewithandrea.com](https://codewithandrea.com/) |
| -- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------ | ------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| 222 | [Move Declaration to File (VSCode assist)](tips/0222-move-to-file-vscode-assist/index.md) | [link](https://x.com/biz84/status/1876983674735849540) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-with-vscode-you-can-easily-activity-7282749783033741314-qVCu) | [link](https://bsky.app/profile/codewithandrea.com/post/3lfabcatbhs2r) |
| 221 | [Using Stack and FractionallySizedBox](tips/0221-stack-fractionally-sized-box/index.md) | [link](https://x.com/biz84/status/1876564889537311226) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-flutter-offers-many-ways-to-activity-7282330843241447426-cDRF) | [link](https://bsky.app/profile/codewithandrea.com/post/3lf5eby24zc2r) |
| 220 | [The ListWheelScrollView Widget](tips/0220-list-wheel-scroll-view/index.md) | [link](https://x.com/biz84/status/1870061289114087814) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-if-you-need-to-select-between-activity-7275827511219945472-cYEH) | [link](https://bsky.app/profile/codewithandrea.com/post/3ldqaaejlx22e) | |
| 219 | [Color API Deprecations in Flutter 3.27](tips/0219-color-deprecations-flutter-3.27/index.md) | [link](https://x.com/biz84/status/1869357562979893444) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-to-support-the-latest-wide-activity-7275123561881645057-LsKH) | [link](https://bsky.app/profile/codewithandrea.com/post/3ldldwzh6l22f) | |
Expand Down
2 changes: 1 addition & 1 deletion tips/0221-stack-fractionally-sized-box/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ return AspectRatio(

| Previous | Next |
| -------- | ---- |
| [The ListWheelScrollView Widget](../0220-list-wheel-scroll-view/index.md) | |
| [The ListWheelScrollView Widget](../0220-list-wheel-scroll-view/index.md) | [Move Declaration to File (VSCode assist)](../0222-move-to-file-vscode-assist/index.md) |


<!-- TWITTER|https://x.com/biz84/status/1876564889537311226 -->
Expand Down
Binary file added tips/0222-move-to-file-vscode-assist/222.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions tips/0222-move-to-file-vscode-assist/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Move Declaration to File (VSCode assist)

Did you know?

With VSCode, you can easily move your Dart classes and functions to a different file.

To use this, select any declaration name and press `CMD+.`, then use the Move option.

The desired file will be created with all the required imports. 👍

![](222.png)

<!--
Move Declaration to File (VSCode assist)
To use, select a class, function, type or variable declaration.
Then, press CMD+x (Quick Fix) and use the Move option.
The desired file will be created with all the required imports.
/// Helper widget to render a SVG picture from a given asset
class VectorIcon extends StatelessWidget {
const VectorIcon({super.key, required this.path, this.width, this.height});
final String path;
final double? width;
final double? height;
@override
Widget build(BuildContext context) {
return VectorGraphic(
loader: AssetBytesLoader(path),
width: width,
height: height,
);
}
}
-->

---

| Previous | Next |
| -------- | ---- |
| [Using Stack and FractionallySizedBox](../0221-stack-fractionally-sized-box/index.md) | |


<!-- TWITTER|https://x.com/biz84/status/1876983674735849540 -->
<!-- LINKEDIN|https://www.linkedin.com/posts/andreabizzotto_did-you-know-with-vscode-you-can-easily-activity-7282749783033741314-qVCu -->
<!-- BLUESKY|https://bsky.app/profile/codewithandrea.com/post/3lfabcatbhs2r -->


0 comments on commit b218300

Please sign in to comment.