materialTheme static method

LocationPickerTheme materialTheme()

Implementation

static LocationPickerTheme materialTheme() {
  return LocationPickerTheme(
    inputDecoration: const InputDecoration(
      border: OutlineInputBorder(),
      contentPadding: EdgeInsets.symmetric(horizontal: 12, vertical: 16),
    ),
    padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
    margin: const EdgeInsets.symmetric(vertical: 4),
    borderRadius: BorderRadius.circular(4),
    elevation: 2,
    maxHeight: 250,
    showSearchBox: true,
    searchBoxDecoration: const InputDecoration(
      hintText: 'Search...',
      prefixIcon: Icon(Icons.search),
      border: OutlineInputBorder(),
      contentPadding: EdgeInsets.symmetric(horizontal: 12, vertical: 8),
    ),
    animationDuration: const Duration(milliseconds: 150),
  );
}