📦 Installation

Installation / 安装

dependencies:
  zero_adaptive_link: ^0.6.0

Then run:

flutter pub get

From GitHub / 从 GitHub 安装

dependencies:
  zero_adaptive_link:
    git:
      url: https://github.com/zero-labsco/zero-adaptive-link.git
      ref: release/v0.6.0   # replace 0.6.0 with the version you need

Platform support / 平台支持

PlatformSupported
Android✅
iOS✅
Web✅ (hash URL strategy by default / 默认 hash 策略)
Windows / macOS / Linux✅

The plugin is pure Dart: there are no android/ or ios/ directories, no method channels, and no additional platform setup.

本插件为纯 Dart:没有 android/ 或 ios/ 目录、没有 method channel、无需额外平台配置。

Requirements / 环境要求

  • Flutter >= 3.3.0
  • Dart SDK >= 3.11.0 < 4.0.0
  • Zero runtime third-party dependencies / 零运行时第三方依赖

Verifying the installation / 验证安装

Run the bundled example:

git clone https://github.com/zero-labsco/zero-adaptive-link.git
cd zero-adaptive-link/example
flutter run -d chrome

Use the width preset chips (Phone 480 / Foldable 720 / Tablet 1023 / Desktop) to switch widths and verify all three behaviors.

使用宽度预设 chips(Phone 480 / Foldable 720 / Tablet 1023 / Desktop)切换宽度,验证三种行为。