ColabOutlinedButton.white constructor
ColabOutlinedButton.white({
- Key? key,
- required String label,
- VoidCallback? onPressed,
- bool upperCase = true,
- bool progressIndication = false,
Implementation
ColabOutlinedButton.white({
super.key,
required String label,
super.onPressed,
bool upperCase = true,
bool progressIndication = false,
}) : super(
style: OutlinedButton.styleFrom(
side: BorderSide(color: Colors.white),
foregroundColor: Colors.white,
),
child:
progressIndication
? Center(
child: SizedBox(
width: 18,
height: 18,
child: CircularProgressIndicator(strokeWidth: 3),
),
)
: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
upperCase ? label.toUpperCase() : label,
textAlign: TextAlign.center,
),
],
),
);