Skip to content

Commit

Permalink
Tip 215
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Dec 10, 2024
1 parent 8617710 commit c2bb824
Show file tree
Hide file tree
Showing 4 changed files with 46 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/) |
| -- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------ | ------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| 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) | |
| 213 | [Fixing Version Solving Failed Errors](tips/0213-fixing-version-solving-failed-errors/index.md) | [link](https://x.com/biz84/status/1864283511852527815) | [link](https://www.linkedin.com/posts/andreabizzotto_when-you-get-a-version-solving-failed-error-activity-7270050610329100289-0I9m) | [link](https://bsky.app/profile/codewithandrea.com/post/3lci5gzmagc27) | |
| 212 | [Adding a Privacy Manifest in Xcode](tips/0212-xcode-privact-manifest/index.md) | [link](https://x.com/biz84/status/1863537508899860770) | [link](https://www.linkedin.com/posts/andreabizzotto_did-you-know-starting-november-12-2024-activity-7269303842813489154-k5iw) | [link](https://bsky.app/profile/codewithandrea.com/post/3lccxnqg5zs2j) | |
Expand Down
2 changes: 1 addition & 1 deletion tips/0214-cursor-edit-mode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ It doesn't always get it right, though! So make sure you tweak the output as nee

| Previous | Next |
| -------- | ---- |
| [Fixing Version Solving Failed Errors](../0213-fixing-version-solving-failed-errors/index.md) | |
| [Fixing Version Solving Failed Errors](../0213-fixing-version-solving-failed-errors/index.md) | [The Banner Widget](../0215-banner-widget/index.md) |

<!-- TWITTER|https://x.com/biz84/status/1864613511420068093 -->
<!-- LINKEDIN|https://www.linkedin.com/posts/andreabizzotto_did-you-know-the-cursor-ide-has-a-powerful-activity-7270379818746105856-Mq9n -->
Expand Down
Binary file added tips/0215-banner-widget/215.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions tips/0215-banner-widget/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# The Banner Widget

Did you know?

You can use the `Banner` widget to place a small diagonal banner over a child widget.

Note that `Banner` only offers limited customization options. If you need more custom styling, consider building your own using a custom painter.

![](215.png)

<!--
// Use Banner to place a small diagonal banner over a child widget
Banner(
message: 'TOP START',
location: BannerLocation.topStart,
color: Colors.red,
child: ClipRRect(
borderRadius: BorderRadius.circular(20),
child: Image.asset(
'assets/common/app-icon.png',
height: 160,
),
),
)
// Location, color, and text style are configurable, but the banner size is fixed, and this can cause the text to wrap.
-->

---

Note: `Banner` is very closely related to `CheckedModeBanner`, which shows inside your MaterialApp in debug mode.

For more info, check the official docs:

- [Banner class](https://api.flutter.dev/flutter/widgets/Banner-class.html)

---

| Previous | Next |
| -------- | ---- |
| [Improve your code with Cursor Edit Mode](../0214-cursor-edit-mode/index.md) | |

<!-- TWITTER|https://x.com/biz84/status/1866482324105490628 -->
<!-- LINKEDIN|https://www.linkedin.com/posts/andreabizzotto_did-you-know-you-can-use-the-banner-widget-activity-7272248288236519424-tfzF- -->
<!-- BLUESKY|https://bsky.app/profile/codewithandrea.com/post/3lcxfixclys2f -->

0 comments on commit c2bb824

Please sign in to comment.