52 lines
1.3 KiB
Dart
52 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:softplayer_web/api/grpc/environments.dart';
|
|
|
|
class EnvirnomentCard extends StatelessWidget {
|
|
final EnvironmentLocalData env;
|
|
|
|
const EnvirnomentCard({
|
|
super.key,
|
|
required this.env,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Card(
|
|
child: SelectionArea(
|
|
child: Column(
|
|
children: [
|
|
Text(env.name),
|
|
const Divider(),
|
|
Table(
|
|
border: const TableBorder(
|
|
bottom: BorderSide.none,
|
|
left: BorderSide.none,
|
|
right: BorderSide.none,
|
|
top: BorderSide.none,
|
|
),
|
|
children: [
|
|
TableRow(children: [
|
|
Text("Provider"),
|
|
Text(env.provider),
|
|
]),
|
|
TableRow(children: [
|
|
Text("Description"),
|
|
Text(env.description),
|
|
]),
|
|
TableRow(children: [
|
|
Text("Server Type"),
|
|
Text(env.serverType),
|
|
]),
|
|
TableRow(children: [
|
|
Text("Location"),
|
|
Text(env.serverLocation),
|
|
]),
|
|
],
|
|
)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|