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

DesignHubz TryOn Flutter Package

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:try_on_example/ccl_tryon_demo_page.dart';
import 'package:try_on_example/eyewear_tryon_demo_page.dart';

Future main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(
    const MaterialApp(home: HomePage()),
  );
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("DesignHubz TryOn Example"),
      ),
      body: SafeArea(
        child: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              SizedBox(
                width: 250,
                child: ElevatedButton(
                    onPressed: () {
                      Navigator.of(context)
                          .push(MaterialPageRoute(builder: (_) {
                        return const EyewearTryOnDemoPage();
                      }));
                    },
                    child: const Text("Eyewear Demo")),
              ),
              SizedBox(
                width: 250,
                child: ElevatedButton(
                    onPressed: () {
                      Navigator.of(context)
                          .push(MaterialPageRoute(builder: (_) {
                        return const CCLTryOnDemoPage();
                      }));
                    },
                    child: const Text("CCL Demo")),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
130
points
47
downloads

Publisher

verified publisherdesignhubz.com

Weekly Downloads

DesignHubz TryOn Flutter Package

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

device_info_plus, flutter, flutter_inappwebview, plugin_platform_interface

More

Packages that depend on designhubz