metal_shader_fx 0.1.4
metal_shader_fx: ^0.1.4 copied to clipboard
Physically-based metallic border shine effects for Flutter — Cook-Torrance BRDF metallic shine on buttons, toggles, and text fields.
0.1.4 #
- Fix deprecated
withOpacity()calls — migrated towithValues(alpha:)across all widgets - Fix deprecated
Color.alpha,Color.red,Color.green,Color.bluegetters — migrated to newColor.a,Color.r,Color.g,Color.bAPI - Remove unused
package:flutter/material.dartimport fromMetalMaterialConfig - Remove unnecessary library name from barrel export file
0.1.3 #
- Fix package name import
0.1.2 #
- Add images to README
0.1.1 #
- Initial release
MetalToggleCard— animated toggle with metallic thumb shineMetallicBorderButton— button with Cook-Torrance BRDF border shineMetallicBorderTextField— text field with focus-responsive metallic borderPhysicalMetalShinePainter— standalone painter for custom widgetsMetalMaterialConfig— full material property control with presets:.chrome()— polished mirror.brushedSteel()— directional anisotropic.anodized()— heavy iridescent thin-film.gold()— warm high-reflectance
- Cook-Torrance microfacet BRDF (GGX NDF + Schlick Fresnel + Smith G)
- Per-channel thin-film interference (620nm / 530nm / 460nm)
- Anisotropic highlight stretch with configurable brush direction
- Energy conservation via running budget
- Dual-lobe environment map (key + fill light)
- Corner caustics with radial bloom
- Inverse-square distance attenuation
- 5-frequency micro-scratch shimmer
- Radial cross-section torus lighting