mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-03-11 17:24:09 +00:00
fix(initializing): Adjust server location and type list cards
This commit is contained in:
parent
7223b0e614
commit
df9ec28d02
1 changed files with 29 additions and 28 deletions
|
@ -78,18 +78,12 @@ class SelectLocationPage extends StatelessWidget {
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
if (location.flag != null) Text(location.flag!),
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
const SizedBox(height: 8),
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
Text(location.title),
|
||||||
children: [
|
const SizedBox(height: 8),
|
||||||
if (location.flag != null) Text(location.flag!),
|
if (location.description != null)
|
||||||
const SizedBox(height: 8),
|
Text(location.description!),
|
||||||
Text(location.title),
|
|
||||||
const SizedBox(height: 8),
|
|
||||||
if (location.description != null)
|
|
||||||
Text(location.description!),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -141,22 +135,29 @@ class SelectTypePage extends StatelessWidget {
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Text(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
type.title,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
children: [
|
),
|
||||||
Text(type.title),
|
const SizedBox(height: 8),
|
||||||
const SizedBox(height: 8),
|
Text(
|
||||||
Text('cores: $type.cores.toString()'),
|
'cores: ${type.cores.toString()}',
|
||||||
const SizedBox(height: 8),
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
Text('ram: $type.ram.toString()'),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Text('disk: $type.disk.gibibyte.toString()'),
|
Text(
|
||||||
const SizedBox(height: 8),
|
'ram: ${type.ram.toString()}',
|
||||||
Text(
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
'price: $type.price.value.toString() $type.price.currency',
|
),
|
||||||
),
|
const SizedBox(height: 8),
|
||||||
],
|
Text(
|
||||||
|
'disk: ${type.disk.gibibyte.toString()}',
|
||||||
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 8),
|
||||||
|
Text(
|
||||||
|
'price: ${type.price.value.toString()} ${type.price.currency}',
|
||||||
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Reference in a new issue