Skip to content

Commit

Permalink
Tip 225
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Jan 23, 2025
1 parent 52fc60a commit 73a9900
Show file tree
Hide file tree
Showing 4 changed files with 48 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/) |
| -- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------ | ------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| 225 | [DebugFillProperties](tips/0225-debug-fill-properties/index.md) | [link](https://x.com/biz84/status/1882486196133404933) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-if-you-add-a-debugfillproperties-activity-7288252423486234624-KdP-) | [link](https://bsky.app/profile/codewithandrea.com/post/3lggh4vqfas2r) | |
| 224 | [Uploading the Source Maps to Sentry](tips/0224-upload-source-maps-sentry/index.md) | [link](https://x.com/biz84/status/1879922615026151473) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-if-your-codemagic-builds-are-activity-7285688423271530496-XY0x) | [link](https://bsky.app/profile/codewithandrea.com/post/3lfunvdmhjc2w) | |
| 223 | [SSH Access on Codemagic Builds](tips/0223-ssh-access-codemagic/index.md) | [link](https://x.com/biz84/status/1879922615026151473) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-if-your-codemagic-builds-are-activity-7285688423271530496-XY0x) | [link](https://bsky.app/profile/codewithandrea.com/post/3lfunvdmhjc2w) | |
| 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) | |
Expand Down
2 changes: 1 addition & 1 deletion tips/0224-upload-source-maps-sentry/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ For a more complete guide showing how everything fits together (error monitoring

| Previous | Next |
| -------- | ---- |
| [SSH Access on Codemagic Builds](../0223-ssh-access-codemagic/index.md) | |
| [SSH Access on Codemagic Builds](../0223-ssh-access-codemagic/index.md) | [The debugFillProperties Method](../0225-debug-fill-properties/index.md) |


<!-- TWITTER|https://x.com/biz84/status/1881373630313218480 -->
Expand Down
Binary file added tips/0225-debug-fill-properties/225.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions tips/0225-debug-fill-properties/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# The debugFillProperties Method

Did you know?

If you add a `debugFillProperties()` method to your widget classes, all your custom properties will show in the DevTools.

This information is useful for debugging purposes and has no performance impact on release builds (where it is stripped).

![](225.png)

<!--
class AppListTile extends ConsumerWidget {
const AppListTile(
{super.key, required this.totalTasksCount, required this.app});
final int? totalTasksCount;
final App app;
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties.add(DiagnosticsProperty<App>('app', app));
properties.add(IntProperty('totalTasksCount', totalTasksCount));
}
@override
Widget build(BuildContext context, WidgetRef ref) { ... }
}
-->

---

To learn more about all the supported property types and variants, read the official docs:

- [debugFillProperties method](https://api.flutter.dev/flutter/widgets/State/debugFillProperties.html)

---

| Previous | Next |
| -------- | ---- |
| [Uploading the Source Maps to Sentry](../0224-upload-source-maps-sentry/index.md) | |

<!-- TWITTER|https://x.com/biz84/status/1882486196133404933 -->
<!-- LINKEDIN|https://www.linkedin.com/posts/andreabizzotto_did-you-know-if-you-add-a-debugfillproperties-activity-7288252423486234624-KdP- -->
<!-- BLUESKY|https://bsky.app/profile/codewithandrea.com/post/3lggh4vqfas2r -->

0 comments on commit 73a9900

Please sign in to comment.