location_navigator 1.0.6 copy "location_navigator: ^1.0.6" to clipboard
location_navigator: ^1.0.6 copied to clipboard

A Flutter package to navigate and find nearby places using location.

example/main.dart

import 'package:flutter/material.dart';
import 'package:location_navigator/location_navigator.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Location Navigator',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.teal,
        appBarTheme: const AppBarTheme(
          backgroundColor: Colors.teal,
          foregroundColor: Colors.white,
          elevation: 2,
          centerTitle: true,
        ),
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text("Nearby Places"),
        ),
        body: const NearbyPlacesWidget(radius: 2000),
      ),
    );
  }
}
5
likes
140
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to navigate and find nearby places using location.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter, flutter_map, geolocator, http, latlong2

More

Packages that depend on location_navigator