ola_maps_autofill 1.0.0 copy "ola_maps_autofill: ^1.0.0" to clipboard
ola_maps_autofill: ^1.0.0 copied to clipboard

The ola_maps_autofill package provides a customizable search field component for Flutter applications.

example/lib/main.dart

import 'dart:developer';

import 'package:flutter/material.dart';
import 'package:gap/gap.dart';
import 'package:ola_maps_autofill/ola_maps_autofill.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Theme.of(context).primaryColor,
        body: Center(
          child: Padding(
            padding: const EdgeInsets.symmetric(horizontal: 15),
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                const Text(
                  "Autofill",
                  style: TextStyle(fontSize: 18, color: Colors.white),
                ),
                const Gap(5),
                SearchField(
                  apiKey: 'YourApiKey',
                  onChanged: (value) {
                    log((value?.toJson()).toString());
                  },
                ),
                const Gap(15),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
12
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The ola_maps_autofill package provides a customizable search field component for Flutter applications.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

animated_custom_dropdown, flutter, http, json_annotation

More

Packages that depend on ola_maps_autofill