sphere 0.0.4

Flutter Android iOS web

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,
        ),
      ),
    );
  }
1
likes
80
pub points
57%
popularity

Publisher

final.dev

A Flutter sphere widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on sphere