mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-27 11:16:45 +00:00
fix
This commit is contained in:
parent
3c683bef63
commit
e4f154b4f5
|
@ -21,10 +21,6 @@ class AppConfigRepository {
|
|||
Box box = Hive.box(BNames.appConfig);
|
||||
|
||||
AppConfigState load() {
|
||||
// saveIsServerStarted(false);
|
||||
// saveIsServerReseted(false);
|
||||
// saveHasFinalChecked(false);
|
||||
|
||||
return AppConfigState(
|
||||
hetznerKey: box.get(BNames.hetznerKey),
|
||||
cloudFlareKey: box.get(BNames.cloudFlareKey),
|
||||
|
|
|
@ -100,6 +100,7 @@ class _TextButton extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: onPressed,
|
||||
behavior: HitTestBehavior.opaque,
|
||||
child: Container(
|
||||
height: 48,
|
||||
width: double.infinity,
|
||||
|
|
|
@ -13,7 +13,6 @@ class BrandCard extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
margin: EdgeInsets.only(bottom: 30),
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).brightness == Brightness.dark
|
||||
? BrandColors.black
|
||||
|
|
|
@ -47,25 +47,20 @@ class InitializingPage extends StatelessWidget {
|
|||
body: ListView(
|
||||
children: [
|
||||
Padding(
|
||||
padding: brandPagePadding1,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
ProgressBar(
|
||||
steps: [
|
||||
'Hetzner',
|
||||
'CloudFlare',
|
||||
'Backblaze',
|
||||
'Domain',
|
||||
'User',
|
||||
'Server',
|
||||
' ✅',
|
||||
' ✅',
|
||||
' ✅'
|
||||
],
|
||||
activeIndex: cubit.state.progress,
|
||||
),
|
||||
padding: brandPagePadding2.copyWith(top: 10, bottom: 10),
|
||||
child: ProgressBar(
|
||||
steps: [
|
||||
'Hetzner',
|
||||
'CloudFlare',
|
||||
'Backblaze',
|
||||
'Domain',
|
||||
'User',
|
||||
'Server',
|
||||
' ✅',
|
||||
' ✅',
|
||||
' ✅'
|
||||
],
|
||||
activeIndex: cubit.state.progress,
|
||||
),
|
||||
),
|
||||
_addCard(
|
||||
|
@ -84,7 +79,6 @@ class InitializingPage extends StatelessWidget {
|
|||
(predicate) => false,
|
||||
);
|
||||
}),
|
||||
SizedBox(height: 30),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -415,7 +409,7 @@ class InitializingPage extends StatelessWidget {
|
|||
BrandButton.rised(
|
||||
onPressed:
|
||||
isLoading! ? null : appConfigCubit.createServerAndSetDnsRecords,
|
||||
title: isLoading ? 'loading' : 'initializing.11'.tr(),
|
||||
title: isLoading ? 'basis.loading'.tr() : 'initializing.11'.tr(),
|
||||
),
|
||||
Spacer(flex: 2),
|
||||
BrandButton.text(
|
||||
|
@ -472,7 +466,7 @@ class InitializingPage extends StatelessWidget {
|
|||
|
||||
Widget _addCard(Widget child) {
|
||||
return Container(
|
||||
height: 500,
|
||||
height: 450,
|
||||
padding: brandPagePadding2,
|
||||
child: BrandCard(child: child),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue