getSmallButtonWitoutFill function
Widget
getSmallButtonWitoutFill(
- String title,
- bool _isLoading,
- void onPressed()
)
Implementation
Widget getSmallButtonWitoutFill(String title, bool _isLoading, void Function() onPressed){
return TextButton(
onPressed: onPressed,
style: ButtonStyle(
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24.0),
side: const BorderSide(color: black),
),
),
backgroundColor: WidgetStateProperty.all<Color>(white),
),
child: _isLoading
? const Padding(
padding: EdgeInsets.only(top: 8,bottom: 8),
child: SizedBox(width: 10,height: 10,child: CircularProgressIndicator(color: black,strokeWidth: 2)),
)
: Text(
title,
style: TextStyle(fontSize: description, fontWeight: FontWeight.w500, color:black,),
),
);
}