buttonType method
Implementation
Widget buttonType(
{required T button,
required BuildContext context}) {
return OutlinedButton(
onPressed: () {
debugPrint("button:${button.name} clicked");
button.onTap(context);
},
style: OutlinedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
side: BorderSide(
color: Theme.of(context).textTheme.bodyMedium!.color!,
width: 2), // 테두리 색상과 두께 설정
),
child: Text(button.name)
.fontWeight(FontWeight.bold)
.textColor(Theme.of(context).textTheme.bodyMedium!.color!)
.padding(vertical: 15, horizontal: 20),
).padding(
horizontal: 20,
vertical: 7,
);
}