<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/codewithandrea/best-of/2024" -->

---
title: Best Code with Andrea posts of 2024 | daily.dev
description: The most upvoted Code with Andrea posts of 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/codewithandrea/best-of/2024
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/codewithandrea/best-of/2024
og:type: website
og:site_name: daily.dev
og:title: Best Code with Andrea posts of 2024 | daily.dev
og:description: The most upvoted Code with Andrea posts of 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Code with Andrea — 2024

1. 1  
[](/posts/how-i-built-a-modern-course-platform-in-2024-qkbvsgxug "How I Built a Modern Course Platform in 2024")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
12m read time • Feb 23, 2024  
### How I Built a Modern Course Platform in 2024  
The author built a modern course platform for Flutter developers, using technologies like Astro, Supabase, TypeScript, and TailwindCSS. They faced challenges with email link authentication. The running costs for the platform are estimated to be $214 per month. The author is offering a 33% discount on their courses.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/f0154a3f423dd34af13d247142350dee?_a=AQAEufR)  
88
2. 2  
[](/posts/futures-await-vs-unawaited-vs-ignore-t186fpfnc "Futures: await vs unawaited vs ignore")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Aug 02, 2024  
### Futures: await vs unawaited vs ignore  
When calling a method that returns a Future, you can use 'await', 'unawaited', or 'ignore'. This choice affects how your code handles exceptions thrown by the Future. Understanding the differences is crucial for proper error handling in asynchronous programming.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/113a91f7036888ff0a17386922d30f9a?_a=AQAEuiZ)  
58  
4
3. 3  
[](/posts/how-to-add-a-badge-to-an-iconbutton-y6lrbsrca "How to add a Badge to an IconButton")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Sep 02, 2024  
### How to add a Badge to an IconButton  
The post discusses the simple method of adding a badge to an IconButton using the Badge widget in Flutter. It highlights use cases such as displaying notification counts and custom labels, and mentions compatibility with NavigationRailDestination and BottomNavigationBarItem.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/397fd419e1669392d583db870d3a8de3?_a=AQAEuiZ)  
51  
2
4. 4  
[](/posts/the-carouselview-widget-izbwfobmp "The CarouselView Widget")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Aug 08, 2024  
### The CarouselView Widget  
Flutter 3.24 introduces the CarouselView widget, providing an easy way to create carousels with various customizations. Key features include limiting height with \`ConstrainedBox\`, setting children's size with \`itemExtent\` and \`shrinkExtent\`, and allowing any widgets as children. For more info and sample code, refer to the official documentation.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/afc399f511d9f419669e22991ea43d80?_a=AQAEuiZ)  
41
5. 5  
[](/posts/buildcontext-extension-for-push-pop-nkmkydsiv "BuildContext Extension for Push, Pop")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Sep 05, 2024  
### BuildContext Extension for Push, Pop  
Simplify your Flutter app's navigation code by defining push and pop methods inside a BuildContext extension. This allows you to use context.push or context.pop instead of repeatedly calling Navigator.of(context).

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/937598ae555317cf8bf800bd69eb7831?_a=AQAEuiZ)  
37
6. 6  
[](/posts/flutter-find-unused-dart-files-vscode-extension--ezptb5wt1 "Flutter: Find Unused Dart Files (VSCode Extension)")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Jun 24, 2024  
### Flutter: Find Unused Dart Files (VSCode Extension)  
Unused assets can bloat your app bundle size in Flutter projects. The 'Find Unused Dart Files' extension for VSCode helps identify unnecessary files, assets, and dependencies. Easily run it from the command palette for a cleaner, more efficient codebase.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/ee3f1c6b417970909c18f3cb629acd7d?_a=AQAEuiZ)  
36  
3
7. 7  
[](/posts/flutter-tip-use-composition-aggressively-ikpupz4hh "Flutter Tip: Use Composition Aggressively")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Apr 23, 2024  
### Flutter Tip: Use Composition Aggressively  
Using composition aggressively in Flutter can lead to the creation of small, reusable widgets that are easier to reason about.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/89ed538993fbe0b5438de0c8003bd168?_a=AQAEufR)  
34
8. 8  
[](/posts/stylish-text-with-shadermask-and-lineargradient-blbewbfhi "Stylish Text with ShaderMask and LinearGradient")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Sep 03, 2024  
### Stylish Text with ShaderMask and LinearGradient  
Learn how to create stylish text in Flutter by combining ShaderMask with LinearGradient. This example demonstrates using a gradient to style text with a code snippet provided.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/bb3f8093774ae4d8e64032ea8c361979?_a=AQAEuiZ)  
34
9. 9  
[](/posts/flutter-sidebar-vscode--ilqte6tra "Flutter Sidebar (VSCode)")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Aug 26, 2024  
### Flutter Sidebar (VSCode)  
The Flutter VSCode sidebar allows developers to easily access DevTools and other functionalities from a single location, making development more convenient. The Flutter CLI and command palette are also options, but the sidebar consolidates everything into one click.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/581c8d70d2da9d89b2b30bdfc8bbcc4a?_a=AQAEuiZ)  
32
10. 10  
[](/posts/how-to-publish-your-flutter-web-apps-on-github-pages-for-free-v2w71jnhs "How to Publish your Flutter Web Apps on GitHub Pages for Free")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
6m read time • Mar 08, 2024  
### How to Publish your Flutter Web Apps on GitHub Pages for Free  
This post provides a simple workflow for deploying Flutter web apps using GitHub Pages. It explains how to set up the source repo, deploy the app, and configure GitHub Pages. It also describes how to scale up the deployment for multiple apps using a monorepo.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/51dbc7d46eddacc47760e91342dc96b4?_a=AQAEufR)  
32  
2
11. 11  
[](/posts/how-to-cancel-http-requests-with-canceltoken-and-riverpod-q6jppq33t "How to Cancel HTTP Requests with CancelToken and Riverpod")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Jul 11, 2024  
### How to Cancel HTTP Requests with CancelToken and Riverpod  
CancelToken allows you to cancel HTTP requests on demand, which optimizes network usage and improves user experience. It is especially useful for stopping unnecessary data fetches or implementing 'cancel' buttons in Flutter apps. Integrating CancelToken with Riverpod can handle cancellations efficiently in your code.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/028695613f27d7d7dddb191513d9f50b?_a=AQAEuiZ)  
30
12. 12  
[](/posts/the-widget-build-method-dos-and-don-ts-1nimzrwhm "The widget build method: DOs and DON'Ts")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Jun 28, 2024  
### The widget build method: DOs and DON'Ts  
The widget build method can be called during every frame and should not have side effects. Instead, side effects should be handled inside widget callbacks, which are triggered by separate events. This approach maintains the rendering phase's integrity.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/ccfa6ba97c48d996e84f724655cc6818?_a=AQAEuiZ)  
29
13. 13  
[](/posts/how-to-design-your-flutter-app-icons-in-figma-rrs1gtxim "How to Design Your Flutter App Icons in Figma")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
3m read time • Nov 15, 2024  
### How to Design Your Flutter App Icons in Figma  
Designing an eye-catching app icon is crucial for app store visibility. This guide outlines how to create a Flutter app icon in Figma, even if you're a design novice. Key steps include starting with a 1000x1000px square background, scaling foreground content for iOS and Android, and exporting icons properly. Using services like FlatIcon can save time. The post also introduces a new course on preparing, releasing, and maintaining Flutter apps in production.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/8b975015ff23f6e4030bc317903c1a57?_a=AQAEuj9)  
28
14. 14  
[](/posts/useful-aliases-for-flutter-app-development-bg8fvmo4h "Useful Aliases for Flutter App Development")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Jun 05, 2024  
### Useful Aliases for Flutter App Development  
Learn useful aliases for Flutter app development to speed up your workflow. Also consider using IDE hotkeys, extensions, and customizing your IDE settings.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/6a2f5feb299211164906f546196b6eae?_a=AQAEuiZ)  
28
15. 15  
[](/posts/how-to-ask-for-in-app-reviews-in-your-flutter-app-cdl81bjpe "How to Ask for In-App Reviews in Your Flutter App")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
11m read time • Sep 27, 2024  
### How to Ask for In-App Reviews in Your Flutter App  
In-app reviews are crucial for app success, impacting user feedback and app store performance. This high-level guide explains using the in\_app\_review package in a Flutter app to prompt users at the optimal time for reviews. Key highlights include installation, timing for prompts, handling logic with analytics, and leveraging data-driven decisions to increase positive reviews. The guide also explores integrating with Riverpod for state management and utilizing Shared Preferences for tracking review requests.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/6dde4904b6aec550804c312d338cbfb5?_a=AQAEuiZ)  
25  
1
16. 16  
[](/posts/how-to-release-your-flutter-app-on-the-ios-app-store-srf1ece39 "How to Release Your Flutter App on the iOS App Store")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
13m read time • Dec 03, 2024  
### How to Release Your Flutter App on the iOS App Store  
The post provides a comprehensive guide to releasing your Flutter app on the iOS App Store. It covers critical steps including enrolling in the Apple Developer Program, registering your App ID, creating your app in App Store Connect, preparing your app for review, creating a Privacy Manifest in Xcode, updating Xcode project settings, and finally, building, uploading, and submitting your app for review. The guide also highlights trade-offs of selling apps on the App Store, such as revenue cut and review delays.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/d60cb0fece5a06bf86c415d95a4dc09d?_a=AQAEuj9)  
21  
1
17. 17  
[](/posts/the-overflowbar-widget-xqcd1ewrp "The OverflowBar Widget")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Aug 06, 2024  
### The OverflowBar Widget  
OverflowBar allows widgets to be laid out in a row and switches to a column if they exceed the available horizontal space. It offers customization for horizontal and vertical spacing as well as overflow alignment, distinguishing itself from the Wrap widget which continues adding items horizontally upon overflow.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/511d8b754035fd2bf6f2863e2b8e4732?_a=AQAEuiZ)  
22
18. 18  
[](/posts/api-keys-storage-client-or-server--xsj7cnj6c "API keys storage: Client or Server?")  
[![codewithandrea's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f57ff93b416640bd8675ee26eef6d777)](/sources/[source]/best-of/[year])  
1m read time • Nov 25, 2024  
### API keys storage: Client or Server?  
Security is crucial when building mobile or web apps. It's important to know which API keys should be stored on the client and which on the server. The post provides guidelines for making this decision and includes additional resources for in-depth guidance on securing API keys and best practices for Firebase Cloud Functions.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/7db191eb32c609936ea44eca7b5075b8?_a=AQAEuj9)  
20

[See all Code with Andrea archives](/sources/codewithandrea/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/codewithandrea/best-of/2024#page","url":"https://daily.dev/sources/codewithandrea/best-of/2024","name":"Best Code with Andrea Posts of 2024","description":"The most upvoted Code with Andrea posts of 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/codewithandrea/best-of/2024#items","numberOfItems":18,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/how-i-built-a-modern-course-platform-in-2024-qkbvsgxug","name":"How I Built a Modern Course Platform in 2024"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/futures-await-vs-unawaited-vs-ignore-t186fpfnc","name":"Futures: await vs unawaited vs ignore"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/how-to-add-a-badge-to-an-iconbutton-y6lrbsrca","name":"How to add a Badge to an IconButton"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/the-carouselview-widget-izbwfobmp","name":"The CarouselView Widget"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/buildcontext-extension-for-push-pop-nkmkydsiv","name":"BuildContext Extension for Push, Pop"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/flutter-find-unused-dart-files-vscode-extension--ezptb5wt1","name":"Flutter: Find Unused Dart Files (VSCode Extension)"},{"@type":"ListItem","position":7,"url":"https://daily.dev/posts/flutter-tip-use-composition-aggressively-ikpupz4hh","name":"Flutter Tip: Use Composition Aggressively"},{"@type":"ListItem","position":8,"url":"https://daily.dev/posts/stylish-text-with-shadermask-and-lineargradient-blbewbfhi","name":"Stylish Text with ShaderMask and LinearGradient"},{"@type":"ListItem","position":9,"url":"https://daily.dev/posts/flutter-sidebar-vscode--ilqte6tra","name":"Flutter Sidebar (VSCode)"},{"@type":"ListItem","position":10,"url":"https://daily.dev/posts/how-to-publish-your-flutter-web-apps-on-github-pages-for-free-v2w71jnhs","name":"How to Publish your Flutter Web Apps on GitHub Pages for Free"},{"@type":"ListItem","position":11,"url":"https://daily.dev/posts/how-to-cancel-http-requests-with-canceltoken-and-riverpod-q6jppq33t","name":"How to Cancel HTTP Requests with CancelToken and Riverpod"},{"@type":"ListItem","position":12,"url":"https://daily.dev/posts/the-widget-build-method-dos-and-don-ts-1nimzrwhm","name":"The widget build method: DOs and DON'Ts"},{"@type":"ListItem","position":13,"url":"https://daily.dev/posts/how-to-design-your-flutter-app-icons-in-figma-rrs1gtxim","name":"How to Design Your Flutter App Icons in Figma"},{"@type":"ListItem","position":14,"url":"https://daily.dev/posts/useful-aliases-for-flutter-app-development-bg8fvmo4h","name":"Useful Aliases for Flutter App Development"},{"@type":"ListItem","position":15,"url":"https://daily.dev/posts/how-to-ask-for-in-app-reviews-in-your-flutter-app-cdl81bjpe","name":"How to Ask for In-App Reviews in Your Flutter App"},{"@type":"ListItem","position":16,"url":"https://daily.dev/posts/how-to-release-your-flutter-app-on-the-ios-app-store-srf1ece39","name":"How to Release Your Flutter App on the iOS App Store"},{"@type":"ListItem","position":17,"url":"https://daily.dev/posts/the-overflowbar-widget-xqcd1ewrp","name":"The OverflowBar Widget"},{"@type":"ListItem","position":18,"url":"https://daily.dev/posts/api-keys-storage-client-or-server--xsj7cnj6c","name":"API keys storage: Client or Server?"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Code with Andrea","item":"https://daily.dev/sources/codewithandrea"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/codewithandrea/best-of"},{"@type":"ListItem","position":5,"name":"2024"}]}]}
```

