From e32387bfe254dcc29d76b56e48b32ad9d4706431 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 5 Apr 2022 13:22:48 +1000 Subject: [PATCH] clean up example project --- example/android/app/build.gradle | 1 + example/lib/main.dart | 13 +++---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 45dff029..978e4bb4 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -29,6 +29,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion 31 + ndkVersion "23.1.7779620" compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 diff --git a/example/lib/main.dart b/example/lib/main.dart index 56d1ba7b..0274c109 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,9 +1,5 @@ -import 'dart:math'; - import 'package:flutter/material.dart'; import 'package:polyvox_filament/filament_controller.dart'; -import 'package:polyvox_filament/gesture_detecting_filament_view.dart'; -import 'package:polyvox_filament/view/filament_view.dart'; import 'package:polyvox_filament/view/filament_widget.dart'; void main() { @@ -38,13 +34,10 @@ class _MyAppState extends State { title: const Text('Plugin example app'), ), body: Stack(children: [ - Center( - child: Container( - width: 400, - height: 400, - child: FilamentWidget( + Positioned.fill( + child: FilamentWidget( controller: _filamentController, - ), + )), Positioned.fill( child: Wrap(