fdroid
Kherel 2021-03-25 09:46:07 +01:00
parent 3c683bef63
commit e4f154b4f5
4 changed files with 16 additions and 26 deletions

View File

@ -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),

View File

@ -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,

View File

@ -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

View File

@ -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),
);