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
    
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容