Best of DartJanuary 2025

  1. 1
    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.

  2. 2
    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.

  3. 3
    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.