Loader constructor

const Loader({
  1. Key? key,
  2. required ValueListenable<bool> value,
  3. required Widget page,
  4. Color? color,
  5. int milliseconds = 500,
  6. Curve curve = Curves.easeInOut,
  7. IconData? icon,
  8. double? iconSize,
  9. String? imagePath,
  10. double? imageSize = 60,
})

A widget that displays a loading indicator with a fade transition to a page.

The Loader widget shows a loading indicator (either an icon, image, or circular progress indicator) and transitions to the provided page with a fade effect when the value changes.

The value and page parameters are required and must not be null.

Implementation

const Loader({
  super.key,
  required this.value,
  required this.page,
  this.color,
  this.milliseconds = 500,
  this.curve = Curves.easeInOut,
  this.icon,
  this.iconSize,
  this.imagePath,
  this.imageSize = 60,
});