createBtn method
Implementation
Widget createBtn(BuildContext context) {
return Container(
margin: EdgeInsets.only(top: space ?? 20, bottom: space ?? 20),
child: buttonWidget ??
InkWell(
onTap: () {
if (onTap != null) {
onTap!();
}
},
child: Container(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.secondary,
borderRadius: const BorderRadius.all(
Radius.circular(
22,
),
),
),
height: 44,
child: Text(
"点击刷新",
style: TextStyle(color: Theme.of(context).primaryColor),
),
),
),
);
}