Skip to content

Commit

Permalink
Tip 217
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Dec 13, 2024
1 parent 4df097c commit c7d6519
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
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/) |
| -- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------ | ------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| 217 | [Digits Separators in Dart 3.6](tips/0217-digits-separators/index.md) | [link](https://x.com/biz84/status/1867505284002000962) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-since-dart-36-flutter-327-activity-7273271119049068544-gQuB) | [link](https://bsky.app/profile/codewithandrea.com/post/3ld6ioxq5x22f) | |
| 216 | [New Spacing Argument in Row/Column (Flutter 3.27)](tips/0216-spacing-row-column/index.md) | [link](https://x.com/biz84/status/1867143273652904039) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-since-flutter-327-you-can-activity-7272909542131187712-7Spj) | [link](https://bsky.app/profile/codewithandrea.com/post/3ld3ycpuxxk2f) | |
| 215 | [The Banner Widget](tips/0215-banner-widget/index.md) | [link](https://x.com/biz84/status/1866482324105490628) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-you-can-use-the-banner-widget-activity-7272248288236519424-tfzF) | [link](https://bsky.app/profile/codewithandrea.com/post/3lcxfixclys2f) | |
| 214 | [Improve your code with Cursor Edit Mode](tips/0214-cursor-edit-mode/index.md) | [link](https://x.com/biz84/status/1864613511420068093) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-the-cursor-ide-has-a-powerful-activity-7270379818746105856-Mq9n) | [link](https://bsky.app/profile/codewithandrea.com/post/3lckgkkurms27) | |
Expand Down
11 changes: 6 additions & 5 deletions tips/0216-spacing-row-column/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ Column(
-->

<!-- TWITTER|https://x.com/biz84/status/1867143273652904039 -->
<!-- LINKEDIN|https://www.linkedin.com/posts/andreabizzotto_did-you-know-since-flutter-327-you-can-activity-7272909542131187712-7Spj -->
<!-- BLUESKY|https://bsky.app/profile/codewithandrea.com/post/3ld3ycpuxxk2f -->

---

| Previous | Next |
| -------- | ---- |
| [The Banner Widget](../0215-banner-widget/index.md) | |
| [The Banner Widget](../0215-banner-widget/index.md) | [Digits Separators in Dart 3.6](../0217-digits-separators/index.md) |

<!-- TWITTER|https://x.com/biz84/status/1867143273652904039 -->
<!-- LINKEDIN|https://www.linkedin.com/posts/andreabizzotto_did-you-know-since-flutter-327-you-can-activity-7272909542131187712-7Spj -->
<!-- BLUESKY|https://bsky.app/profile/codewithandrea.com/post/3ld3ycpuxxk2f -->

Binary file added tips/0217-digits-separators/217.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions tips/0217-digits-separators/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Digits Separators in Dart 3.6

Did you know?

Since Dart 3.6 (Flutter 3.27), you can use `_` as a digits separator. 🎯

This works with integers and floats, as well as custom formats (hex, scientific).

To enable this, bump the Dart SDK to 3.6 in your `pubspec.yaml`.

![](217.png)

<!--
// valid ✅
const distanceToMoonKm = 384_400;
const earthAgeYears = 4_540__000_000;
const speedOfLightKmSec = 299_792.458;
const macAddress = 0xA4_FC_14_21_A2_DF;
// invalid ❌
const invalidNumber1 = 123_;
const invalidNumber2 = 3._14;
const invalidNumber3 = 6.022e_23;
-->

---

| Previous | Next |
| -------- | ---- |
| [New Spacing Argument in Row/Column (Flutter 3.27)](../0216-spacing-row-column/index.md) | |


<!-- TWITTER|https://x.com/biz84/status/1867505284002000962 -->
<!-- LINKEDIN|https://www.linkedin.com/posts/andreabizzotto_did-you-know-since-dart-36-flutter-327-activity-7273271119049068544-gQuB -->
<!-- BLUESKY|https://bsky.app/profile/codewithandrea.com/post/3ld6ioxq5x22f -->

0 comments on commit c7d6519

Please sign in to comment.