<div id="qayss"></div>
  • <xmp id="qayss">
  • <small id="qayss"><small id="qayss"></small></small>
    <div id="qayss"></div>
  • <li id="qayss"></li>
  • <div id="qayss"><div id="qayss"></div></div>
  • <xmp id="qayss"><li id="qayss"></li>
    <div id="qayss"><li id="qayss"></li></div>
  • <small id="qayss"></small>
  • <div id="qayss"></div>
  • <xmp id="qayss"><div id="qayss"></div><div id="qayss"><div id="qayss"></div></div><xmp id="qayss">
    <small id="qayss"><div id="qayss"></div></small><div id="qayss"></div>
  • 記Flutter windows桌面端開發實戰

    作者:日漸消瘦 來源:blog.csdn.net 更新時間:2024-01-09 01:30



    開發前準備

    調研了大量flutter windows方面的開發小部件、注意事項、插件依賴庫等,以下列出主要用到的插件:

    UI框架使用:fluent_ui(符合Microsoft Windows UI 準則且flutter官方推薦的ui框架

    UI交互(狀態管理)使用:Provider(Flutter 官方推薦的狀態管理方式)

    網絡請求使用:dio(flutter中最受歡迎的網絡請求插件)

    數據庫使用:sqlite3、sqlite3_flutter_libs(flutter packages 網站上使用量靠前的數據庫插件)

    國家化使用:intl(flutter官方力薦)

    完整的pubspec.yaml依賴如下:

    fluent_ui:
        git: https://github.com/bdlukaa/fluent_ui.git
      system_theme: ^2.1.0
      flutter_acrylic: ^1.1.0+1
      window_manager: ^0.3.0
      provider: ^6.0.5
      dio: ^5.0.0
      sqlite3: ^1.9.1
      sqlcipher_flutter_libs: ^0.5.4
      worker_manager: ^5.0.0
      # flutter_nsd: ^1.3.3
      flutter_nsd:
        path: ./packages/flutter_nsd
      logging: ^1.1.1
      universal_disk_space: ^0.2.3
      freezed: ^2.3.2
      device_info_plus: ^8.1.0
      synchronized: ^3.0.1
      crypto: ^3.0.2
      sprintf: ^7.0.0
      number_paginator: ^0.2.3
      multi_image_picker_view: ^0.0.15
      expandable: ^5.0.1
      path: ^1.8.3
      shelf: ^1.4.0
      shelf_router: ^1.1.3
      network_info_plus: ^3.0.2
      connectivity_plus: ^3.0.3
      pretty_dio_logger: ^1.3.1
      dio_smart_retry: ^5.0.0
      jwt_decoder: ^2.0.1
      uuid: ^3.0.7
      ansicolor: ^2.0.1
      screen_retriever: ^0.1.6
      file_picker: ^5.2.6
      file_selector: ^0.9.2+4
      flutter_single_instance: ^0.0.1
      calendar_date_picker2: ^0.4.9
      path_provider: ^2.0.14
    
     

    使用Fluent_ui搭建起整個項目結構,結合UX設計稿然后盡情coding carry。

    開發后期:

    打包exe安裝包,官網或百度都能找到相關資料,其中flutter官網是主推msix進行打包,但存在兼容問題。我們主要還是打exe通用安裝包(官網鏈接打包工具 文章結尾有提到【可使用Inno Setup、WiX等工具】)

    曰本丰满熟妇XXXX性,一女多男在疯狂伦交,多人乱P杂交公车调教,成人AV在线一区二区三区
    <div id="qayss"></div>
  • <xmp id="qayss">
  • <small id="qayss"><small id="qayss"></small></small>
    <div id="qayss"></div>
  • <li id="qayss"></li>
  • <div id="qayss"><div id="qayss"></div></div>
  • <xmp id="qayss"><li id="qayss"></li>
    <div id="qayss"><li id="qayss"></li></div>
  • <small id="qayss"></small>
  • <div id="qayss"></div>
  • <xmp id="qayss"><div id="qayss"></div><div id="qayss"><div id="qayss"></div></div><xmp id="qayss">
    <small id="qayss"><div id="qayss"></div></small><div id="qayss"></div>