sphere 0.0.4 copy "sphere: ^0.0.4" to clipboard
sphere: ^0.0.4 copied to clipboard

A Flutter sphere widget.

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,
        ),
      ),
    );
  }