Added VGA gallery

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-16 00:29:03 +01:00
parent e9e56eac9a
commit 222e3c51ee
2 changed files with 125 additions and 11 deletions

View File

@@ -3,6 +3,7 @@ import 'package:wolf_3d_data_types/wolf_3d_data_types.dart';
import 'package:wolf_3d_flutter/wolf_3d.dart';
import 'package:wolf_dart/screens/difficulty_screen.dart';
import 'package:wolf_dart/screens/sprite_gallery.dart';
import 'package:wolf_dart/screens/vga_gallery.dart';
class EpisodeScreen extends StatefulWidget {
const EpisodeScreen({super.key});
@@ -33,17 +34,35 @@ class _EpisodeScreenState extends State<EpisodeScreen> {
return Scaffold(
backgroundColor: Colors.teal,
floatingActionButton: IconButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) {
return SpriteGallery(sprites: Wolf3d.I.sprites);
},
),
);
},
icon: Icon(Icons.bug_report),
floatingActionButtonLocation:
FloatingActionButtonLocation.miniCenterFloat,
floatingActionButton: Row(
children: [
FloatingActionButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) {
return VgaGallery(images: Wolf3d.I.vgaImages);
},
),
);
},
child: Text('VGA Gallery'),
),
FloatingActionButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) {
return SpriteGallery(sprites: Wolf3d.I.sprites);
},
),
);
},
child: Text('Sprites'),
),
],
),
body: Center(
child: Column(