KitLoading constructor

const KitLoading({
  1. Key? key,
  2. Widget loading = const CircularProgressIndicator(backgroundColor: Colors.white10, color: Colors.white),
  3. String text = 'Carregando...',
  4. TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 15, fontWeight: FontWeight.bold),
  5. BoxDecoration boxDecoration = const BoxDecoration(color: Color.fromRGBO(48, 97, 140, 1)),
  6. double height = double.infinity,
  7. MainAxisAlignment? mainAxisAlignment = MainAxisAlignment.center,
  8. MainAxisSize? mainAxisSize = MainAxisSize.max,
  9. double? spaceItens = 10,
  10. double width = double.infinity,
})

Implementation

const KitLoading(
    {Key? key,
    this.loading = const CircularProgressIndicator(
      backgroundColor: Colors.white10,
      color: Colors.white,
    ),
    this.text = 'Carregando...',
    this.textStyle = const TextStyle(
        color: Colors.white, fontSize: 15, fontWeight: FontWeight.bold),
    this.boxDecoration =
        const BoxDecoration(color: Color.fromRGBO(48, 97, 140, 1)),
    this.height = double.infinity,
    this.mainAxisAlignment = MainAxisAlignment.center,
    this.mainAxisSize = MainAxisSize.max,
    this.spaceItens = 10,
    this.width = double.infinity})
    : super(key: key);