Ajout des vaisseau clicables
This commit is contained in:
20
lib/pages/ship_page.dart
Normal file
20
lib/pages/ship_page.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:space_traders/models/ship_model.dart';
|
||||
|
||||
class ShipPage extends StatelessWidget {
|
||||
final ShipModel ship;
|
||||
|
||||
ShipPage({required this.ship});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('Ship Details'),
|
||||
),
|
||||
body: Center(
|
||||
child: Text('Ship Symbol: ${ship.symbol}'),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user