8000 GitHub - zesage/sphere
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zesage/sphere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0