fixes for Android transparency and add removeAsset method
This commit is contained in:
@@ -28,16 +28,16 @@ class _MyAppState extends State<MyApp> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
color: Colors.transparent,
|
||||
home: Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Plugin example app'),
|
||||
),
|
||||
backgroundColor: Colors.transparent,
|
||||
body: Column(children: [
|
||||
SizedBox(
|
||||
Expanded(child:SizedBox(
|
||||
height:200, width:200,
|
||||
child:FilamentWidget(
|
||||
controller: _filamentController,
|
||||
)),
|
||||
))),
|
||||
|
||||
Expanded(
|
||||
child: Wrap(
|
||||
alignment: WrapAlignment.end,
|
||||
@@ -63,6 +63,12 @@ class _MyAppState extends State<MyApp> {
|
||||
await _filamentController.loadGltf(
|
||||
'assets/FlightHelmet/FlightHelmet.gltf', 'assets/FlightHelmet');
|
||||
}),
|
||||
ElevatedButton(
|
||||
child: const Text('remove asset'),
|
||||
onPressed: () async {
|
||||
await _filamentController
|
||||
.removeAsset();
|
||||
}),
|
||||
ElevatedButton(
|
||||
child: const Text('set all weights to 1'),
|
||||
onPressed: () async {
|
||||
|
||||
Reference in New Issue
Block a user