h3_flutter_gdx_plus 0.8.2
h3_flutter_gdx_plus: ^0.8.2 copied to clipboard
Android and iOS Flutter bindings for the H3 Core hexagonal geospatial indexing library.
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'),
),
],
),
),
);
}
}