22 lines
451 B
Dart
22 lines
451 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class GamePage extends StatelessWidget {
|
|
final String title;
|
|
final String description;
|
|
|
|
const GamePage({
|
|
super.key,
|
|
required this.title,
|
|
required this.description,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(title: Text(title)),
|
|
body: Center(
|
|
child: Text(description, style: TextStyle(fontSize: 24)),
|
|
),
|
|
);
|
|
}
|
|
} |