Update README and code to set default sparkle shape to 'none' and add opacity control

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-04-15 11:24:32 +02:00
parent 0fec97163d
commit c7382c11a5
7 changed files with 257 additions and 80 deletions
+5 -5
View File
@@ -16,14 +16,14 @@ void main() {
expect(shinyCard.style, HolographStyle.crackedIce);
});
test('default sparkle shape is star', () {
test('default sparkle shape is none', () {
const Shiny shiny = Shiny(child: SizedBox.shrink());
const ShinyCard shinyCard = ShinyCard();
expect(shiny.sparkleShape.kind, SparkleShapeKind.star);
expect(shiny.sparkleShape.primary, 8.0);
expect(shinyCard.sparkleShape.kind, SparkleShapeKind.star);
expect(shinyCard.sparkleShape.primary, 8.0);
expect(shiny.sparkleShape.kind, SparkleShapeKind.none);
expect(shiny.sparkleShape.primary, 0.0);
expect(shinyCard.sparkleShape.kind, SparkleShapeKind.none);
expect(shinyCard.sparkleShape.primary, 0.0);
});
test('custom sparkle factories produce expected specs', () {