h3_flutter_gdx_plus 0.8.2 copy "h3_flutter_gdx_plus: ^0.8.2" to clipboard
h3_flutter_gdx_plus: ^0.8.2 copied to clipboard

Android and iOS Flutter bindings for the H3 Core hexagonal geospatial indexing library.

example/lib/main.dart

import 'package:flutter/material.dart';
// Modified for the community-maintained h3_flutter_gdx_plus package.
import 'package:h3_flutter_gdx_plus/h3_flutter_gdx_plus.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final h3 = const H3Factory().load();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      restorationScopeId: "h3_flutter_gdx_plus_example",
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: [
            Text('180 degrees in radians is ${h3.degsToRads(180)}'),
            Text(
              '${h3.degsToRads(180)}',
              key: const ValueKey('degsToRadsText'),
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
160
points
218
downloads

Documentation

API reference

Publisher

verified publishergurwinderdevx.com

Weekly Downloads

Android and iOS Flutter bindings for the H3 Core hexagonal geospatial indexing library.

Homepage
Repository (GitHub)
View/report issues
Contributing

Funding

Consider supporting this project:

buymeacoffee.com

License

Apache-2.0 (license)

Dependencies

flutter, geojson2h3, h3_common, h3_ffi

More

Packages that depend on h3_flutter_gdx_plus

Packages that implement h3_flutter_gdx_plus