roundedHoloBorder static method

Container roundedHoloBorder(
  1. BuildContext context, {
  2. String text = "button",
  3. Color color = const Color(0xffed4b2f),
  4. int radius = 20,
  5. double textSize = 16,
  6. double padding = 20,
  7. void function()?,
})

Implementation

static Container roundedHoloBorder(BuildContext context,{String text="button",Color color=const Color(0xffed4b2f),int radius=20,double textSize=16,double padding=20,void Function()? function}){
 return Container(
     child: TextButton(
      onPressed: function, child: Text(text.toUpperCase(),style: TextStyle(color: color,fontSize: textSize),),style: ButtonStyle(padding:MaterialStateProperty.all(edge(padding)),backgroundColor: MaterialStateProperty.all(Colors.transparent),shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(radius.toDouble())))),side: MaterialStateProperty.all(BorderSide(color: color)),),
     )
 );
}