h3_flutter 0.6.2-dev copy "h3_flutter: ^0.6.2-dev" to clipboard
h3_flutter: ^0.6.2-dev 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(
      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'),
            ),
          ],
        ),
      ),
    );
  }
}
11
likes
0
pub points
79%
popularity

Publisher

verified publisherfestelo.tk

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, geojson2h3, h3_common, h3_ffi, h3_web

More

Packages that depend on h3_flutter