XAntiFlickerDirection extension
Extension methods for AntiFlickerDirection to simplify gradient alignment calculations.
This extension provides utility getters for determining gradient alignments
based on direction, enhancing usability when integrating with Glass in
complex Arcane layouts like SliverScreen or BasicCard overlays.
Key features:
- Computes dark and light alignments efficiently without runtime overhead.
- Enables opposite direction lookup for bidirectional effects.
- Performance: Purely computational, no state management, avoiding rebuilds in responsive UIs.
Usage:
final direction = AntiFlickerDirection.top;
final darkAlign = direction.alignmentDark; // Alignment.topCenter
Properties
- alignmentDark → Alignment
-
Available on AntiFlickerDirection, provided by the XAntiFlickerDirection extension
Gets the alignment for the dark end of the gradient, matching the direction's origin.no setter - alignmentLight → Alignment
-
Available on AntiFlickerDirection, provided by the XAntiFlickerDirection extension
Gets the alignment for the light end of the gradient, derived from the opposite direction.no setter - opposite → AntiFlickerDirection
-
Available on AntiFlickerDirection, provided by the XAntiFlickerDirection extension
Gets the opposite direction for bidirectional gradient applications.no setter