getLabelButton function

Widget getLabelButton(
  1. bool loading
)

Implementation

Widget getLabelButton(bool loading) {
  if (loading) {
    return const Padding(padding: EdgeInsets.all(16), child: Text('Continue'));
  } else {
    return const Padding(
      padding: EdgeInsets.all(8),
      child: CircularProgressIndicator(),
    );
  }
}