Search packages, repositories and app categories

flutter_cube cover
Package detailsv0.1.1

flutter_cube

A Flutter 3D widget that renders Wavefront's object files.

AndroidiOSmacOSWindowsLinux
30-day downloads
24.7K
Likes
334
Pub points
130

Install package

flutter pub add flutter_cube

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

flutter_cube is a Flutter package that enables rendering 3D models in Flutter applications using Wavefront (.obj) file format. It provides a simple widget to integrate 3D content into apps across multiple platforms, including Android, iOS, macOS, Windows, and Linux. The package supports basic 3D transformations, lighting, and camera controls, making it ideal for interactive 3D visualizations. Built on top of the Dart and Flutter ecosystem, it allows developers to display static or animated 3D objects with minimal setup. It's particularly useful for educational tools, product previews, and augmented reality experiences.

Use cases

  • 3D model visualization
  • product previews
  • educational apps
  • interactive AR experiences
  • game prototypes

Key features

  • Supports .obj files
  • Cross-platform 3D rendering
  • Basic lighting and camera controls
  • Simple widget integration
  • Lightweight and easy to use

Suitable for

  • Developers building 3D visualizations
  • Educational app creators
  • Product showcase apps
  • AR/VR prototyping
  • Flutter beginners exploring 3D

Considerations

  • Limited to .obj file format
  • No advanced animation support
  • Requires 3D model optimization
  • Performance may vary on low-end devices
  • No built-in physics or interactivity

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Flutter Cube

pub package

A Flutter 3D widget that renders Wavefront's object files.

Getting Started

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

dependencies:
  flutter_cube: ^0.1.0

Add Wavefront's object files to assets.

flutter:
  assets:
    - assets/cube/cube.obj
    - assets/cube/cube.mtl
    - assets/cube/flutter.png

Import and add the Cube widget to your project.

import 'package:flutter_cube/flutter_cube.dart';
... ...
  
@override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Cube(
          onSceneCreated: (Scene scene) {
            scene.world.add(Object(fileName: 'assets/cube/cube.obj'));
          },
        ),
      ),
    );
  }

Screenshot

screenshot screenshot screenshot

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package