KitLoading constructor
const
KitLoading({
- Key? key,
- Widget loading = const CircularProgressIndicator(backgroundColor: Colors.white10, color: Colors.white),
- String text = 'Carregando...',
- TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 15, fontWeight: FontWeight.bold),
- BoxDecoration boxDecoration = const BoxDecoration(color: Color.fromRGBO(48, 97, 140, 1)),
- double height = double.infinity,
- MainAxisAlignment? mainAxisAlignment = MainAxisAlignment.center,
- MainAxisSize? mainAxisSize = MainAxisSize.max,
- double? spaceItens = 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);