chore: Merge flutter-3.7 into digital-ocean-dns

This commit is contained in:
NaiJi 2023-02-15 11:45:48 +04:00
commit ba1f9dbfc9
2 changed files with 4 additions and 3 deletions

View file

@ -810,12 +810,13 @@ class DigitalOceanApi extends ServerProviderApi with VolumeProviderApi {
final rawSizes = response.data!['sizes'];
for (final rawSize in rawSizes) {
for (final rawRegion in rawSize['regions']) {
if (rawRegion.toString() == location.identifier) {
final ramMb = rawSize['memory'].toDouble();
if (rawRegion.toString() == location.identifier && ramMb > 1024) {
types.add(
ServerType(
title: rawSize['description'],
identifier: rawSize['slug'],
ram: rawSize['memory'].toDouble(),
ram: ramMb / 1024,
cores: rawSize['vcpus'],
disk: DiskSize(byte: rawSize['disk'] * 1024 * 1024 * 1024),
price: Price(

View file

@ -14,7 +14,7 @@ class ServerType {
});
final String title;
final String identifier;
final double ram;
final double ram; // GB !!
final DiskSize disk;
final int cores;
final Price price;