h3_flutter_plus 1.0.0+v4.2.1 copy "h3_flutter_plus: ^1.0.0+v4.2.1" to clipboard
h3_flutter_plus: ^1.0.0+v4.2.1 copied to clipboard

H3 bindings for Flutter, built on the abstract interface from h3_common_plus, using h3_ffi_plus and h3_web_plus as platform-specific implementations.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:h3_flutter_plus/h3_flutter_plus.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'),
            ),
            Text(
              '${h3.getNumCells(15)}'
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
160
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

H3 bindings for Flutter, built on the abstract interface from h3_common_plus, using h3_ffi_plus and h3_web_plus as platform-specific implementations.

Repository (GitHub)
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, geojson2h3_plus, h3_common_plus, h3_ffi_plus, h3_web_plus

More

Packages that depend on h3_flutter_plus

Packages that implement h3_flutter_plus