ColabOutlinedButton constructor

ColabOutlinedButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. bool upperCase = true,
  5. bool progressIndication = false,
})

Implementation

ColabOutlinedButton({
  super.key,
  required String label,
  super.onPressed,
  bool upperCase = true,
  bool progressIndication = false,
}) : super(
       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,
                   ),
                 ],
               ),
     );