GlassPageControl constructor

const GlassPageControl({
  1. required int count,
  2. required int currentPage,
  3. Key? key,
  4. ValueChanged<int>? onPageChanged,
  5. double dotSize = 7.0,
  6. double spacing = 7.0,
  7. Color? activeColor,
  8. Color? inactiveColor,
  9. Widget? leadingIcon,
  10. LiquidGlassSettings? settings,
  11. GlassQuality? quality,
  12. bool useOwnLayer = false,
  13. double height = 56,
  14. Duration animationDuration = const Duration(milliseconds: 250),
  15. Curve animationCurve = Curves.easeOutCubic,
})

Creates a glass page control.

Implementation

const GlassPageControl({
  required this.count,
  required this.currentPage,
  super.key,
  this.onPageChanged,
  this.dotSize = 7.0,
  this.spacing = 7.0,
  this.activeColor,
  this.inactiveColor,
  this.leadingIcon,
  this.settings,
  this.quality,
  this.useOwnLayer = false,
  this.height = 56,
  this.animationDuration = const Duration(milliseconds: 250),
  this.animationCurve = Curves.easeOutCubic,
});