Best of Dart2025

  1. 1
    Article
    Avatar of hnHacker News·25w

    Better than JSON

    Protocol Buffers (Protobuf) offers significant advantages over JSON for API development through strong typing, binary serialization, and automatic code generation. While JSON remains popular for its human readability and flexibility, Protobuf provides 3x smaller payload sizes, type safety across multiple languages, and eliminates manual validation errors. The article demonstrates practical implementation using Dart and the Shelf framework, showing how Protobuf can be used independently of gRPC in traditional HTTP APIs. The main trade-off is reduced human readability of binary data, requiring schema files and specialized tooling for debugging.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    How to Secure Mobile APIs in Flutter

    Securing mobile APIs in Flutter is critical to protect sensitive business data and maintain user trust. The post explores common API vulnerabilities and offers strategies to mitigate risks, such as securely storing API keys using Firebase Remote Config and encryption. It emphasizes the importance of using HTTPS, robust authentication methods like OAuth or Firebase Auth, and adopting best practices for secure API access and management.

  3. 3
    Article
    Avatar of medium_jsMedium·52w

    Mason : A Complete Guide for Flutter Developers

    Mason is a code generation tool for Flutter developers that creates reusable templates called 'bricks' to automate boilerplate code creation. The guide covers installation, creating custom bricks with dynamic variables using Mustache syntax, implementing conditional logic for different widget types, and setting up pre/post generation hooks for automated tasks like code formatting. Mason helps reduce repetitive coding, ensures consistency across projects, and significantly improves development productivity through customizable templates.

  4. 4
    Article
    Avatar of flutter_communityFlutter Community·1y

    A simplified Real Movie Booking App 🎬 🍿

    Cinema Booking is a functional movie ticket booking app built with Flutter. Version 1.0 features UI and simple booking logic with Flutter Bloc for state management, currently available for Android. Future versions will include unit tests, iOS and web versions, and more advanced features.

  5. 5
    Article
    Avatar of firebase-developersFirebase Developers·31w

    Dart Client for Genkit

    A new Dart client library simplifies calling Genkit AI flows from Flutter/Dart applications. The package abstracts HTTP communication complexities, provides type-safe interfaces consistent with official Next.js and Angular clients, and supports streaming via Server-Sent Events. Key features include the RemoteAction class for flow representation, automatic JSON serialization with json_serializable, built-in authentication header support, and intuitive streaming with FlowStreamResponse. The library handles Genkit-specific conventions like wrapping requests in {'data': ...} and extracting responses from ['result'], eliminating boilerplate code for developers.

  6. 6
    Article
    Avatar of medium_jsMedium·1y

    Announcing Dart 3.7

    Dart 3.7 focuses on improving developer productivity with new features and updates such as enhanced wildcard variables, a re-written Dart formatter with a new style, updated quick fixes and lints in the analyzer, and several new features on pub.dev including download counts and dark mode. The macro feature has been discontinued, freeing up resources for other improvements. Several Dart SDK libraries are deprecated and will be removed by the end of 2025.

  7. 7
    Article
    Avatar of collectionsCollections·1y

    Highlights of Flutter 3.32 and Dart 3.8 Updates

    Flutter 3.32 introduces experimental web hot reload and refined Cupertino squircles, enhancing iOS aesthetics while integrating AI technologies through Firebase. The Dart 3.8 update offers improved code formatting and null-aware elements for collections, focusing on native interoperability and consistent cross-platform development. Together, these updates are complemented by upcoming Material 3 Expressive, promising to elevate UI design capabilities.

  8. 8
    Article
    Avatar of codigeeCodigee·1y

    Don't mix bloc with get_it

    Mixing Bloc with dependency injection tools like get_it requires careful consideration to avoid issues with state management. Using singletons for BLoC can disrupt its lifecycle, causing unexpected state persistence and errors. Instead, use registerFactory to ensure clean state instances. For better integration, use RepositoryProvider for dependencies within the widget tree.

  9. 9
    Article
    Avatar of medium_jsMedium·33w

    Meet the Flutter Extension for Gemini CLI

    Google released an experimental Flutter Extension for Gemini CLI that combines the Dart and Flutter MCP Server with additional context and commands to accelerate app development. The extension provides commands like /create-app for bootstrapping production-ready apps with design docs, /modify for guided code changes, and /commit for automated testing and Git commits. It includes built-in best practices for Flutter and Dart development, automatically configures the MCP server for common development tasks like analyzing code, managing dependencies, running tests, and interacting with running applications.

  10. 10
    Article
    Avatar of on_leuwcqSamuel Adekunle·34w

    Tech With Sam is Back: Building the Future with Flutter & Dart.

    A developer announces the relaunch of their platform focused on Flutter and Dart mobile app development. They share their journey since 2019, highlighting experience with scaling startups, mentoring, open source contributions, and speaking engagements. The platform aims to help businesses build cross-platform applications while providing weekly tutorials and case studies starting in October 2025.

  11. 11
    Article
    Avatar of flutter_comFlutter Community·1y

    Flutter’s Integration with Native Platforms

    Flutter's integration with native platforms allows developers to leverage platform-specific functionalities using Platform Channels and Dart FFI. Platform Channels enable communication between Dart code and native code on platforms like Android and iOS, making it possible to access features such as cameras, GPS, and sensors. The post provides a detailed step-by-step guide on using Method Channel for fetching battery level in a Flutter app.

  12. 12
    Article
    Avatar of medium_jsMedium·41w

    What’s new in Flutter 3.35

    Flutter 3.35 introduces significant productivity improvements including stable stateful hot reload for web development, experimental Widget Previews for isolated component testing, and enhanced accessibility features. The release includes 1108 commits from 168 contributors, with new Material and Cupertino components, improved Impeller performance, and better multi-platform support. Key additions include the Dart and Flutter MCP Server for AI-assisted development, Android sensitive content protection, and various UI component enhancements. The update also brings breaking changes including component theme normalization, Radio widget redesign, and increased minimum Android SDK requirements.

  13. 13
    Article
    Avatar of flutter_dailyFlutter Daily·1y

    A simplified Real Movie Booking App 🎬 🍿

    Cinema Booking is a fully functional movie ticket booking app developed using Flutter. It emphasizes real-world architecture over mere UI challenges and includes state management with Flutter Bloc. Currently available for Android, future updates will bring unit tests, an iOS version, a web version, and advanced features.

  14. 14
    Article
    Avatar of medium_jsMedium·38w

    Flutter 3.35: The August 2025 Update That’s Actually Revolutionary

    Flutter 3.35 introduces significant improvements including stateful hot reload for web development, Widget Previews for component-driven development, AI integration through MCP Server, and major performance enhancements. The update brings web development to first-class status, adds contextual AI assistance, improves analysis server speed by 50%, and begins decoupling Material and Cupertino libraries from the core framework. Key features include WebAssembly preparation, enhanced accessibility support, and platform-specific improvements for iOS and Android.

  15. 15
    Article
    Avatar of freecodecampfreeCodeCamp·30w

    Mobile App Development with Dart and Flutter

    A comprehensive tutorial covering Dart fundamentals and Flutter mobile app development through 20 step-by-step programs. The course includes interactive code playbacks with an AI tutor, covering widgets, state management, navigation, and data storage. Designed for developers with basic programming knowledge in any language who want to build cross-platform mobile applications.

  16. 16
    Article
    Avatar of medium_jsMedium·1y

    The Ultimate Guide to Flutter’s Most Useful Packages

    Discover the most useful Flutter packages to streamline app development, including tools for monorepo management, networking, environment variables, dependency management, local storage, logging, and code generation. These packages help developers manage projects efficiently, improve code quality, and enhance performance.

  17. 17
    Article
    Avatar of communityCommunity Picks·1y

    Device-Agnostic Design with Flutter and Dart

    The free online course focuses on teaching the basics of Flutter and Dart to create applications compatible with multiple devices. It emphasizes hands-on practice in designing, implementing, and testing device-agnostic applications. The platform uses cookies to collect data for improving courses and conducting scientific research.

  18. 18
    Article
    Avatar of collectionsCollections·27w

    Flutter 3.38 & Dart 3.10: Enhancements for the Future of App Development

    Flutter 3.38 and Dart 3.10 introduce developer productivity improvements including dot shorthand syntax, stable build hooks, and a new analyzer plugin system. Flutter adds web enhancements with better hot reload, experimental Widget Previews, and the GenUI SDK for AI-powered interfaces. Platform support extends to iOS 26/Xcode 26 and Android NDK r28, with Android predictive back gestures and 16KB page size compatibility. DevTools receives network panel improvements and Flutter Inspector bug fixes.

  19. 19
    Article
    Avatar of on_leuwcqSamuel Adekunle·31w

    Full-Stack Mobile Development with Flutter & Serverpod #1 - What is Serverpod? Why go Full-Stack?

    Serverpod is an open-source, Dart-based backend framework designed specifically for Flutter developers. It eliminates the need to switch languages for backend development by providing automatic code generation, a native Postgres ORM, built-in authentication, real-time WebSockets, and cloud deployment capabilities. The framework enables full-stack Dart development, reducing context switching and development time while offering type-safe APIs, distributed caching, file uploads, and monitoring dashboards. This approach addresses common pain points like Firebase vendor lock-in and polyglot stack complexity.

  20. 20
    Article
    Avatar of verygoodventuresVery Good Ventures·39w

    A New Era for App Design (and What it Means for Flutter)

    Flutter is decoupling Material and Cupertino UI libraries from its core SDK, moving them to independent packages on pub.dev. This change enables faster updates for UI components, gives developers more flexibility in choosing design systems, and creates equal opportunities for third-party UI libraries. The move positions Flutter as a more modular framework that can adapt to new design trends like Apple's Liquid Glass and Google's Material 3 Expressive without being constrained by SDK release cycles.

  21. 21
    Article
    Avatar of fluttertapFlutter Tap·1y

    Issue 236 - Flutter Tap Weekly Newsletter

    Flutter's 2025 roadmap focuses on performance upgrades, enhanced accessibility, and improving developer experience. Key initiatives include better support for iOS and Android, expanded web capabilities, and new AI integrations. Several new tutorials and videos are highlighted, covering topics like dynamic forms and game physics.

  22. 22
    Article
    Avatar of itnextITNEXT·1y

    5 Practical Flutter Riverpod Tips Even Remi Won’t Tell

    The post provides five practical tips for using Riverpod in Flutter, drawn from personal experience in transitioning production apps. It covers structuring global providers with mixin classes, efficiently passing and managing page arguments using ProviderScope, accessing providers without WidgetRef using ProviderContainer, safely accessing async provider states, and creating a utility class to simplify development with Riverpod.

  23. 23
    Article
    Avatar of verygoodventuresVery Good Ventures·1y

    The Hard Thing About Hard Things: Macros in Dart

    The Dart team has decided to discontinue their work on macros due to significant technical challenges. This strategic shift allows them to focus on other improvements that offer more immediate benefits. The decision reflects a commitment to maintaining Dart’s strengths of simplicity and performance, ultimately benefiting both Flutter and Dart developers. The team has been transparent and inclusive in their communication with the community during this process, setting a gold standard for open-source project management.