h3_flutter 0.2.0
h3_flutter: ^0.2.0 copied to clipboard
The package provides Dart 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> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: Text('Running on: ${h3.degsToRads(12)}\n'),
),
),
);
}
}