ar_widget 0.0.3 ar_widget: ^0.0.3 copied to clipboard
Widget in the AR World
import 'package:flutter/material.dart';
import 'package:ar_widget/ar_widget.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: ARWidget(
canvasWidth: 400,
canvasHeight: 600,
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatelessWidget {
const MyWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('AR Widget'),
),
body: const Center(
child: Text(
'Hello',
style: TextStyle(fontSize: 50),
),
),
);
}
}