GFLoader constructor

const GFLoader({
  1. Key? key,
  2. Color loaderColorOne = Colors.redAccent,
  3. Color loaderColorTwo = Colors.green,
  4. Color loaderColorThree = Colors.blueAccent,
  5. Duration duration = const Duration(milliseconds: 1000),
  6. GFLoaderType type = GFLoaderType.android,
  7. Widget? loaderIconOne,
  8. Widget? loaderIconTwo,
  9. Widget? loaderIconThree,
  10. Animation<Color>? androidLoaderColor,
  11. double loaderstrokeWidth = 4.0,
  12. double size = GFSize.MEDIUM,
  13. Widget? child,
})

GFLoader shows differnt type of loaders with different customization options.

Implementation

const GFLoader(
    {Key? key,
    this.loaderColorOne = Colors.redAccent,
    this.loaderColorTwo = Colors.green,
    this.loaderColorThree = Colors.blueAccent,
    this.duration = const Duration(milliseconds: 1000),
    this.type = GFLoaderType.android,
    this.loaderIconOne,
    this.loaderIconTwo,
    this.loaderIconThree,
    this.androidLoaderColor,
    this.loaderstrokeWidth = 4.0,
    this.size = GFSize.MEDIUM,
    this.child})
    : super(key: key);