mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 09:31:13 +00:00
chore: Merge desec into refactoring
This commit is contained in:
commit
0a796c9fc6
|
@ -187,137 +187,6 @@ class ProviderSelectionPage extends StatelessWidget {
|
||||||
style: Theme.of(context).textTheme.bodyMedium,
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
OutlinedCard(
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(16.0),
|
|
||||||
child: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Container(
|
|
||||||
width: 40,
|
|
||||||
height: 40,
|
|
||||||
padding: const EdgeInsets.all(10),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
borderRadius: BorderRadius.circular(40),
|
|
||||||
color: const Color.fromARGB(255, 244, 128, 31),
|
|
||||||
),
|
|
||||||
child: SvgPicture.asset(
|
|
||||||
'assets/images/logos/cloudflare.svg',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 16),
|
|
||||||
Text(
|
|
||||||
'Cloudflare',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
Text(
|
|
||||||
'initializing.select_provider_price_title'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
'initializing.select_provider_price_free'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
Text(
|
|
||||||
'initializing.select_provider_payment_title'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
'initializing.select_provider_payment_text_cloudflare'
|
|
||||||
.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
BrandButton.rised(
|
|
||||||
text: 'basis.select'.tr(),
|
|
||||||
onPressed: () {
|
|
||||||
serverInstallationCubit
|
|
||||||
.setDnsProviderType(DnsProviderType.cloudflare);
|
|
||||||
callback(DnsProviderType.cloudflare);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
// Outlined button that will open website
|
|
||||||
BrandOutlinedButton(
|
|
||||||
onPressed: () =>
|
|
||||||
launchUrlString('https://dash.cloudflare.com/'),
|
|
||||||
title: 'initializing.select_provider_site_button'.tr(),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
OutlinedCard(
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(16.0),
|
|
||||||
child: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Container(
|
|
||||||
width: 40,
|
|
||||||
height: 40,
|
|
||||||
padding: const EdgeInsets.all(10),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
borderRadius: BorderRadius.circular(40),
|
|
||||||
color: const Color(0xFF0080FF),
|
|
||||||
),
|
|
||||||
child: SvgPicture.asset(
|
|
||||||
'assets/images/logos/digital_ocean.svg',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 16),
|
|
||||||
Text(
|
|
||||||
'Digital Ocean',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
Text(
|
|
||||||
'initializing.select_provider_price_title'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
'initializing.select_provider_price_free'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
Text(
|
|
||||||
'initializing.select_provider_payment_title'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
'initializing.select_provider_payment_text_do'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
BrandButton.rised(
|
|
||||||
text: 'basis.select'.tr(),
|
|
||||||
onPressed: () {
|
|
||||||
serverInstallationCubit
|
|
||||||
.setDnsProviderType(DnsProviderType.digitalOcean);
|
|
||||||
callback(DnsProviderType.digitalOcean);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
// Outlined button that will open website
|
|
||||||
BrandOutlinedButton(
|
|
||||||
onPressed: () =>
|
|
||||||
launchUrlString('https://www.digitalocean.com'),
|
|
||||||
title: 'initializing.select_provider_site_button'.tr(),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
OutlinedCard(
|
OutlinedCard(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
|
@ -355,15 +224,6 @@ class ProviderSelectionPage extends StatelessWidget {
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
Text(
|
|
||||||
'initializing.select_provider_payment_title'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
'initializing.select_provider_payment_text_do'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
BrandButton.rised(
|
BrandButton.rised(
|
||||||
text: 'basis.select'.tr(),
|
text: 'basis.select'.tr(),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -381,6 +241,62 @@ class ProviderSelectionPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
const SizedBox(height: 16),
|
||||||
|
OutlinedCard(
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(16.0),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
width: 40,
|
||||||
|
height: 40,
|
||||||
|
padding: const EdgeInsets.all(10),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(40),
|
||||||
|
color: const Color.fromARGB(255, 244, 128, 31),
|
||||||
|
),
|
||||||
|
child: SvgPicture.asset(
|
||||||
|
'assets/images/logos/cloudflare.svg',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 16),
|
||||||
|
Text(
|
||||||
|
'Cloudflare',
|
||||||
|
style: Theme.of(context).textTheme.titleMedium,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(height: 16),
|
||||||
|
Text(
|
||||||
|
'initializing.select_provider_price_title'.tr(),
|
||||||
|
style: Theme.of(context).textTheme.bodyLarge,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
'initializing.select_provider_price_free'.tr(),
|
||||||
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 16),
|
||||||
|
BrandButton.rised(
|
||||||
|
text: 'basis.select'.tr(),
|
||||||
|
onPressed: () {
|
||||||
|
serverInstallationCubit
|
||||||
|
.setDnsProviderType(DnsProviderType.cloudflare);
|
||||||
|
callback(DnsProviderType.cloudflare);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
// Outlined button that will open website
|
||||||
|
BrandOutlinedButton(
|
||||||
|
onPressed: () =>
|
||||||
|
launchUrlString('https://dash.cloudflare.com/'),
|
||||||
|
title: 'initializing.select_provider_site_button'.tr(),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue