kat_h3 0.0.1 copy "kat_h3: ^0.0.1" to clipboard
kat_h3: ^0.0.1 copied to clipboard

PlatformAndroid

The package provides Flutter version of the H3 Core library, a hexagon-based geographic grid system.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:kat_h3/kat_h3.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: "kat_h3_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
140
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

The package provides Flutter version of the H3 Core library, a hexagon-based geographic grid system.

Documentation

API reference

License

unknown (license)

Dependencies

flutter, geojson2h3, h3_common, h3_ffi, h3_web, plugin_platform_interface

More

Packages that depend on kat_h3