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

squares 封面
套件詳情v1.2.1

squares

一個靈活的國際象棋棋盤小部件,適用於 Flutter。視覺上可自訂,並支援多種國際象棋變體。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
178
喜歡數
36
Pub 分數
140

安裝套件

flutter pub add squares

套件介紹

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

Squares 是一個靈活的棋盤小工具,專為 Flutter 設計,適用於遊戲開發,具備廣泛的視覺自訂功能,並支援多種國際象棋變體。它讓開發者能輕鬆建立互動式棋盤,提供可調整的版面、棋子渲染與事件處理。此套件非常適合用來建構國際象棋應用程式、謎題遊戲,或任何需要跨多個平台動態呈現棋盤的棋盤類遊戲。

適用情境

  • 建構國際象棋應用程式
  • 製作棋盤遊戲原型
  • 實現國際象棋變體
  • 開發拼圖遊戲
  • 設計互動式教程
  • 支援多人桌遊

主要特色

  • 高度可自訂的外觀
  • 內建支援國際象棋變體
  • 跨平台相容性
  • 互動棋子移動
  • 模組化設計,方便擴展
  • 響應式佈局調整

適合對象

  • Flutter 遊戲開發者
  • 教育類應用程式開發者
  • 國際象棋變體愛好者
  • UI/UX設計師正在開發桌遊
  • 初學者學習Flutter遊戲機制

使用建議

  • 需要理解國際象棋邏輯才能完全發揮功能
  • 自定義可能需要額外的樣式知識
  • 大型畫板或複雜動畫帶來的效能影響
  • 有限的內建規則執行
  • 未針對非國際象棋棋盤遊戲進行優化

原始 README

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

Squares

A flexible chessboard widget for Flutter.

Squares is a chessboard like you've never seen before. Or more accurately, it is a chessboard very much like the ones you have seen before, but one that can do a pretty wide variety of things.

It is a UI package only, meaning it doesn't handle game logic. The Bishop package is recommended for game logic, and there is also a small interoperability package, Square Bishop that provides convenience methods for common type, a state for Squares to use, and extension methods on Bishop.Game that generate it.

There are two examples: a simple one in around 100 lines, and a more complex and featureful app that demonstrates the various features of Squares in a realistic architecture.

Squares has a stateless Board widget that can used to display a complete board representation, and can be integrated at a low level with your own UI logic. However, the more likely use case involves the BoardController widget, which implements all of the piece selection and movement logic you're likely to need, including premoves and piece promotion.

Features
  • Highlighting previous moves, possible moves, check/checkmate

  • Board themes

  • Marker themes

  • Piece animations

  • Premoves

  • Supports arbitrary board sizes and pieces



  • Piece promotion

  • Flexible piece set definitions - any widget will do, use an svg, image asset, text, etc

  • Dropping pieces from hands (à la Crazyhouse)

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。