搜尋分類、套件與程式碼儲存庫

pixel_perfect 封面
套件詳情v1.1.3

pixel_perfect

幫助您讓 Flutter 應用程式達到「像素級完美」的開發工具

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
5260
喜歡數
225
Pub 分數
150

安裝套件

flutter pub add pixel_perfect

套件介紹

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

Pixel Perfect 是一款專為 Flutter 開發者設計的開發工具,透過提供視覺疊加層和對齊指引,幫助開發者實現像素級精確的設計。它能夠跨不同螢幕尺寸和解析度進行精確的佈局檢查,讓 UI 外觀的一致性更容易確保。該工具可無縫整合到開發工作流程中,設定簡單,能在設計實作過程中提供即時反饋。非常適合注重高保真 UI 的團隊使用,支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。

適用情境

  • 確保在多個設備螢幕上保持一致的使用者介面
  • 驗證佈局中的精確間距和對齊
  • 開發過程中的調試設計差異
  • 與設計師協作,精確匹配原型圖
  • 在應用發布前執行最終品質檢查

主要特色

  • 視覺對齊指引與網格疊加
  • 即時版面檢查
  • 跨平台支援
  • 所需設定最少
  • 與 Flutter 開發工具的整合

適合對象

  • 使用 Flutter 的 UI/UX 設計師
  • 專注於設計準確性的前端開發人員
  • 需要嚴格設計一致性的團隊
  • 移動和Web應用開發專案
  • 以設計為導向的開發工作流程

使用建議

  • 不適用於生產建構
  • 開發期間可能會略微影響效能
  • 在除錯模式下需要手動啟用
  • 最佳搭配設計系統指南使用
  • 僅限視覺調試,不支援自動化測試

原始 README

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

pixel_perfect

Pub License: MIT style: effective dart PRs Welcome Awesome Flutter

logo

Put a semi-transparent image with the design over the top of the developed layout. It helps you to compare original design and current page.

demo1

demo2

Getting started

Add pixel_perfect in your pubspec.yaml dependencies.

dependencies:
 pixel_perfect: any
How To Use

Simple use

Add assets folder with images to your pubspec.yaml

  uses-material-design: true
  assets:
    - assets/

Import the following package in your dart file

import 'package:pixel_perfect/pixel_perfect.dart';

return PixelPerfect(
  assetPath: 'assets/design.png', // path to your asset image
  scale: 1, // scale value (optional)
  initBottom: 20, //  default bottom distance (optional)
  offset: Offset.zero, // default image offset (optional)
  initOpacity: 0.4, // init opacity value (optional)
  child: Scaffold(
    ..
  )
)

Extended use


return PixelPerfect.extended(
  image: Image.asset( // any image file
    'assets/element.png',
    scale: 2,
  ), 
  initBottom: 20, //  default bottom distance (optional)
  offset: Offset.zero, // default image offset (optional)
  initOpacity: 0.4, // init opacity value (optional)
  child: Scaffold(
    ..
  )
)

Video tutorials by Learn App Code

How to Make Pixel Perfect Flutter Apps
How to Make Responsive Flutter Apps, Pixel Perfect

所屬分類

原始碼儲存庫

使用此套件的專案