getQuickButtons method
Implementation
Widget getQuickButtons() {
if (!widget.isEdit) {
return const SizedBox.shrink();
}
if (widget.btns != null) {
return widget.btns!;
} else if (widget.btnsTxt != null) {
if (widget.isBtnsScroll!) {
return ListView(
scrollDirection: Axis.horizontal,
children: getBtnsByText(),
);
} else {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: getBtnsByText(),
);
}
} else {
return const SizedBox.shrink();
}
}