buildAddNewButton method

Widget buildAddNewButton()

Implementation

Widget buildAddNewButton() {
  return Container(
    padding: const EdgeInsets.all(10.0),
    child: Row(
      mainAxisSize: MainAxisSize.max,
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        AppButton(
          width: 250.0,
          onPressed: () {
            dropDownKey.currentState?.closeDropDownSearch();
            if (onAddNewPressed != null) {
              onAddNewPressed!();
            }
          },
          text: 'Add New',
        ),
      ],
    ),
  );
}