Skip to content
pubscout

flutter_globe_3d

3.0.1+1, released 6 weeks ago by liliin.icu

High-performance interactive 3D sphere rendering for Flutter with shader materials and annotations.

WASM-ready
$ flutter pub add flutter_globe_3d
Source repository

What it does

Renders high-performance interactive 3D spheres in Flutter using GPU fragment shaders. Allows placing geographic nodes, surface markers, side annotations, and curved connections with a camera pose system.

AI-written summary of version 3.0.1+1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display an interactive 3D globe or planet in a Flutter application.
  • You want to render geographic coordinates, surface markers, or connected network nodes on a 3D sphere.
  • You require custom sphere materials like textures, lighting, atmosphere, and camera animations.

Skip it when

  • You need a standard flat 2D map or full geographic information system (GIS) with tile loading.
  • Your project uses a Flutter version older than 3.44.0.

Strengths

  • High-performance GPU fragment shader rendering for the textured sphere.
  • Supports interactive Flutter widgets as surface markers or annotations.
  • Includes camera pose system, animated focus, automatic spin, lighting, and curved connections.

Weaknesses

  • Requires a relatively recent Flutter version (3.44.0 or newer).
  • Limited to spherical 3D rendering rather than generic 3D model loading.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Requires Flutter 3.44.0 or newer. No additional native permission setup documented.

import 'package:flutter/material.dart';
import 'package:flutter_globe_3d/flutter_globe_3d.dart';

class InteractiveSphere extends StatefulWidget {
  const InteractiveSphere({super.key});

  @override
  State<InteractiveSphere> createState() => _InteractiveSphereState();
}

class _InteractiveSphereState extends State<InteractiveSphere> {
  late final controller = SphereController();

  @override
  void dispose() {
    controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) => SizedBox(
        width: 360,
        height: 360,
        child: SphereView.earth(controller: controller),
      );
}

Works with

Packages commonly used together with flutter_globe_3d: ones it builds on, ones built on it, and its own family.