ColabOutlinedButton.small constructor
ColabOutlinedButton.small({
- Key? key,
- required String label,
- VoidCallback? onPressed,
- bool upperCase = true,
- bool progressIndication = false,
Implementation
ColabOutlinedButton.small({
super.key,
required String label,
super.onPressed,
bool upperCase = true,
bool progressIndication = false,
}) : super(
style: ElevatedButton.styleFrom(
padding: EdgeInsets.symmetric(horizontal: 10, vertical: 5),
),
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,
),
],
),
);