fix(initializing): Adjust server location and type list cards

routes-refactor
NaiJi ✨ 2022-10-21 08:33:47 +04:00
parent 7223b0e614
commit df9ec28d02
1 changed files with 29 additions and 28 deletions

View File

@ -77,10 +77,6 @@ class SelectLocationPage extends StatelessWidget {
padding: const EdgeInsets.all(16.0), padding: const EdgeInsets.all(16.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
if (location.flag != null) Text(location.flag!), if (location.flag != null) Text(location.flag!),
const SizedBox(height: 8), const SizedBox(height: 8),
@ -90,8 +86,6 @@ class SelectLocationPage extends StatelessWidget {
Text(location.description!), 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),
Text('cores: $type.cores.toString()'),
const SizedBox(height: 8),
Text('ram: $type.ram.toString()'),
const SizedBox(height: 8),
Text('disk: $type.disk.gibibyte.toString()'),
const SizedBox(height: 8), const SizedBox(height: 8),
Text( Text(
'price: $type.price.value.toString() $type.price.currency', 'cores: ${type.cores.toString()}',
style: Theme.of(context).textTheme.bodySmall,
), ),
], const SizedBox(height: 8),
Text(
'ram: ${type.ram.toString()}',
style: Theme.of(context).textTheme.bodySmall,
),
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,
), ),
], ],
), ),