Sphere

pub package

A sphere widget for Flutter.

Getting Started

Add sphere as a dependency in your pubspec.yaml file.

dependencies:
  sphere: ^0.0.4

Usage example

Add an image assets to your pubspec.yaml file.

  assets:
    - assets/2k_earth_daymap.jpg

Import sphere.dart and add sphere widget to your app.

import 'package:sphere/sphere.dart';
... ...
  
@override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Sphere(
          surface: 'assets/2k_earth_daymap.jpg',
          radius: 180,
          latitude: 0,
          longitude: 0,
        ),
      ),
    );
  }

Libraries

sphere