alexobviously / squares

A flexible chessboard widget for Flutter
https://pub.dev/packages/squares
Other
37 stars 15 forks source link

Piece selector customisation #11

Open alexobviously opened 1 year ago

alexobviously commented 1 year ago

Currently the piece selector is kind of the weakest point in the package in terms of customisability.

We probably want to support a few things:

It could just be that we allow overriding the piece selector building functionality entirely, but there's a lot of logic there and that it's probably worth coming up with a better solution. Maybe PieceSelector should be a more modular design that accepts a builder function with a list of piece widgets (how to allow overriding their size without making it complex?) and the theme etc