搜尋套件、儲存庫與 APP 分類

套件詳情v0.2.2

navi

一個簡單且容易學習的宣告式導航框架,基於 Navigator 2.0(Router)。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
55
喜歡數
16
Pub 分數
140

安裝套件

flutter pub add navi

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Navi 是一個用於 Flutter 的宣告式導航框架,透過 Navigator 2.0(Router)簡化路由。設計上著重於易學性與直覺的語法,讓開發者能以清晰、結構化的方式定義導航流程。Navi 可無縫處理路由轉換、深度連結與狀態管理,非常適合需要複雜導航模式的應用程式。支援所有主要平台,可順暢整合至現有的 Flutter 專案中。

適用情境

  • 宣告式路由定義
  • 複雜的導航流程
  • 深度連結支援
  • 跨平台路由
  • 有狀態導航
  • 從 Navigator 1.0 輕鬆遷移

主要特色

  • 宣告式語法
  • 基於導航器 2.0
  • 內建深度連結
  • Platform-agnostic
  • 簡單 API
  • 自動路由處理

適合對象

  • 初學者到中級的 Flutter 開發者
  • 具有複雜導航的應用程式
  • 需要一致路由的項目
  • 注重可維護代碼的團隊
  • 尋求最小樣板程式碼的開發者

使用建議

  • 需要了解 Navigator 2.0
  • 可能需要額外的設定才能滿足高級用例
  • 與替代方案相比,社群採用有限
  • 不適合非常簡單的應用程式,特別是路由很少的應用程式

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Navi

A simple and easy to learn declarative navigation framework for Flutter, based on Navigator 2.0 (Router).


If you love Flutter, you would love declarative UI and therefore declarative navigation.

Navigator 2.0 provides a declarative navigation API. Unfortunately, it's too complex and difficult to use with a lot of boilerplate. Not only that, it requires to keep a single state to manage the whole navigation system of your application. It's not a good architecture, and definitely does not fit in large scale applications.

Navi helps you keep all the powerful of Navigator 2.0 but with a simple and easy to learn API. It helps you manage your navigation system in split and isolated domains.

Note that, imperative navigation API is also supported as an extra layer beyond the declarative API.

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。