createInputDoneButton static method

Widget createInputDoneButton(
  1. BuildContext context
)

Create an InputDoneButton widget

Implementation

static Widget createInputDoneButton(BuildContext context) {
  return Container(
    width: double.infinity,
    color: Colors.grey[200],
    alignment: Alignment.topRight,
    padding: const EdgeInsets.only(top: 1.0, bottom: 1.0),
    child: CupertinoButton(
      padding: const EdgeInsets.only(right: 24.0, top: 2.0, bottom: 2.0),
      onPressed: () => FocusScope.of(context).requestFocus(FocusNode()),
      child: const Text(
        'Done',
        style: TextStyle(color: Colors.black, fontWeight: FontWeight.normal),
      ),
    ),
  );
}