The named parameter 'center' isn't defined

Custom Code
// Automatic FlutterFlow imports
import '/backend/supabase/supabase.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/widgets/index.dart'; // Imports other custom widgets
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom widget code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!

import 'package:open_street_map_search_and_pick/open_street_map_search_and_pick.dart';

class PickAddress extends StatefulWidget {
  const PickAddress({
    super.key,
    this.width,
    this.height,
  });

  final double? width;
  final double? height;

  @override
  State<PickAddress> createState() => _PickAddressState();
}

class _PickAddressState extends State<PickAddress> {
  String locationaddress = "Pick location";
  @override
  Widget build(BuildContext context) {
    return Container(
      child: InkWell(
        child: Text(locationaddress),
        onTap: () {
          _showModal(context);
        },
      ),
    );
  }
}

void _showModal(BuildContext context) {
  showModalBottomSheet(
      context: context,
      builder: (context) {
        return Container(
          height: 200,
          //color: Colors.red,
          child: Center(
            child: OpenStreetMapSearchAndPick(
                center: LatLong(23, 89),
                buttonColor: Colors.blue,
                buttonText: 'Set Current Location',
                onPicked: (pickedData) {}),
          ),
        );
      });
}
What have you tried so far?

open_street_map_search_and_pick: ^0.1.1

Did you check FlutterFlow's Documentation for this topic?
Yes
2
1 reply