webview_location 0.0.3 copy "webview_location: ^0.0.3" to clipboard
webview_location: ^0.0.3 copied to clipboard

A Simple flutter package designed to display Google Maps locations by place name in a WebView for both Android and iOS platforms.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Webview Location Example',
      home: ShowLocation(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Webview Location Example'),
      ),
      body: Center(
          child: ElevatedButton(
        onPressed: () {
          Navigator.push(
            context,
            MaterialPageRoute(
              builder: (context) => const ViewLocation(),
            ),
          );
        },
        child: const Text('Show Location in Webview'),
      )),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('View Location'),
        ),
        body: const ShowLocationInWebview(
          locationName: 'Yonago, Tottori, Japan',
        ));
  }
}
7
likes
160
pub points
38%
popularity

Publisher

verified publisherayimenlatheef.online

A Simple flutter package designed to display Google Maps locations by place name in a WebView for both Android and iOS platforms.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, webview_flutter

More

Packages that depend on webview_location