build method

  1. @override
Widget build(
  1. BuildContext context
)
override

todo: remove comments

Implementation

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: appBar,
    body: Padding(
      padding: const EdgeInsets.all(20),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.start,
        children: [
          Form(
            key: _formKey,
            child: EWOSMPlacesAutoCompleteTextFormField(
              focusNode: focusNode,
              addressLineController: addressController,
              addressLineHintText: addressLineHintText ?? 'Address Line 1',
              addressLineLabelText: addressLineLabelText ?? 'Address Line 1',
              textInputType: textInputType,
              onPlaceTappedAddressLine: (place) {
                onPlaceTap?.call(place.displayName ?? '');
              },
              overlayContainer: (child) => Material(
                elevation: 1.0,
                borderRadius: BorderRadius.circular(12),
                child: child,
              ),
            ),
          ),
          const SizedBox(height: 24),
        ],
      ),
    ),
  );
}