h3_flutter 0.6.6 copy "h3_flutter: ^0.6.6" to clipboard
h3_flutter: ^0.6.6 copied to clipboard

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:h3_flutter/h3_flutter.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: 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_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'),
            ),
          ],
        ),
      ),
    );
  }
}
17
likes
160
points
882
downloads

Publisher

verified publisherfestelo.tk

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, geojson2h3, h3_common, h3_ffi, h3_web

More

Packages that depend on h3_flutter