permission requested, here I have some code, which I want to ask, how do I change the shape of the "box" into several images. so when you first click it will change the image and it will fall, after the random response changes to the next image.
(main.dart)
import 'package:flutter/material.dart';
import 'package:flame/flame.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_app/box-game.dart';
import 'package:flutter/gestures.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
//Util flameUtil = Util();
await Flame.util.fullScreen();
await Flame.util.setOrientation(DeviceOrientation.portraitUp);
BoxGame game = BoxGame();
runApp(MaterialApp(
home: Scaffold(
body: Stack(
children: [
GestureDetector(
behavior: HitTestBehavior.opaque,
onTapDown: (TapDownDetails d) {
// place your tap down handler code here
//print('outer tap down');
game.onTapDown(d);
},
child: game.widget,
),
Text('This is the HUD UI'),
],
),
),
));
}`enter code here`
(box-game.dart)