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:
@@ -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', () {
|
||||
|
||||
Reference in New Issue
Block a user