Flutter之Commonly used third-party libraries

Commonly used third-party libraries

  • Network request

    • Dio

    Dio is a powerful Dart Http request library that supports Restful apis, FormData, interceptors, request cancellations, Cookie management, file upload/download, timeouts, custom adapters...

    dependencies:
      ...
      dio: ^3.0.9
    
    • Retrofit

    retrofit.dart is a type conversion dio client generator using source_gen

    dependencies:
       retrofit: any
       logger: any  #for logging purpose
    
    dev_dependencies:
       retrofit_generator: any
       build_runner: any
    
    • http

    Dart official network request library

    dependencies:
       ...
       http: ^0.12.0+1
    
  • pull_to_refresh

a widget provided to the flutter scroll component drop-down refresh and pull up load.support android and ios.

dependencies:
     ...
     pull_to_refresh: ^1.5.7
  • Gson

    • json_annotation

    Defines the annotations used by json_serializable to create code for JSON serialization and deserialization.

    dependencies:
        json_annotation: ^2.0.0
    dev_dependencies:
        build_runner: ^1.3.3
        json_serializable: ^2.0.0
    
  • Data storage

    • sqflite

    SQLite plugin for Flutter. Supports iOS, Android and MacOS.

    dependencies:
       ...
      sqflite: ^1.3.0
    
    • shared_preferences

    Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android), providing a persistent store for simple data. Data is persisted to disk asynchronously. Neither platform can guarantee that writes will be persisted to disk after returning and this plugin must not be used for storing critical data.

    dependencies:
        ...
        shared_preferences: ^0.5.6+3
    
  • fluttertoast

Android and iOS Toast Library for Flutter.

dependencies:
   ...
   fluttertoast: ^2.2.4
  • path_provider

A Flutter plugin for finding commonly used locations on the filesystem. Supports iOS and Android.

dependencies:
    ...
    path_provider 1.6.7
  • webview_flutter

A Flutter plugin that provides a WebView widget.
On iOS the WebView widget is backed by a WKWebView; On Android the WebView widget is backed by a WebView.

dependencies:
   ...
   webview_flutter 0.3.20+2
  • Signature

A Flutter plugin providing performance optimized signature canvas with ability to set custom style, boundaries and initial state. This is native flutter implementation, so it supports all platforms.

dependencies:
   ...
   signature: ^3.0.0
  • State management framework

    • scoped_model

    A set of utilities that allow you to easily pass a data Model from a parent Widget down to it's descendants. In addition, it also rebuilds all of the children that use the model when the model is updated. This library was originally extracted from the Fuchsia codebase.

    dependencies:
       ...
       scoped_model 1.0.1
    
    • bloc

    The goal of this package is to make it easy to implement the BLoC Design Pattern (Business Logic Component).
    This design pattern helps to separate presentation from business logic. Following the BLoC pattern facilitates testability and reusability. This package abstracts reactive aspects of the pattern allowing developers to focus on converting events into states.

    dependencies:
      ...
      bloc 4.0.0
    
    • redux

    Redux for Dart using generics for typed State. It includes a rich ecosystem of Docs, Middleware, Dev Tools and can be combined with Flutter using the flutter_redux package.

    dependencies:
       ...
       redux 4.0.0
    

你可能感兴趣的:(Flutter之Commonly used third-party libraries)