ricoh_theta 1.0.0 copy "ricoh_theta: ^1.0.0" to clipboard
ricoh_theta: ^1.0.0 copied to clipboard

A powerful plugin for Ricoh Theta using the latest official SDK.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:ricoh_theta_example/pages/connect.dart';
import 'package:ricoh_theta_example/pages/home.dart';
import 'package:ricoh_theta_example/pages/image_view.dart';
import 'package:ricoh_theta_example/pages/settings.dart';

void main() {
  runApp(const RicohThetaApp());
}

class RicohThetaApp extends StatefulWidget {
  const RicohThetaApp({super.key});

  @override
  State<RicohThetaApp> createState() => _RicohThetaAppState();
}

class _RicohThetaAppState extends State<RicohThetaApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      onGenerateRoute: (settings) {
        switch (settings.name) {
          case '/':
            return MaterialPageRoute(
              builder: (context) => const ConnectPage(),
            );
          case '/home':
            return MaterialPageRoute(
              builder: (context) => const HomePage(),
            );
          case '/home/image-view':
            final args = (settings.arguments as Map<String, String>);
            return MaterialPageRoute(
              builder: (context) => ImageViewPage(
                fileId: args['fileId']!,
              ),
            );
          case '/settings':
            return MaterialPageRoute(
              builder: (context) => const SettingsPage(),
            );
          default:
            return MaterialPageRoute(
              builder: (context) => const ConnectPage(),
            );
        }
      },
    );
  }
}
1
likes
130
points
10
downloads

Publisher

verified publishervrtice.com

Weekly Downloads

A powerful plugin for Ricoh Theta using the latest official SDK.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on ricoh_theta

Packages that implement ricoh_theta