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); Box box = Hive.box(BNames.appConfig);
AppConfigState load() { AppConfigState load() {
// saveIsServerStarted(false);
// saveIsServerReseted(false);
// saveHasFinalChecked(false);
return AppConfigState( return AppConfigState(
hetznerKey: box.get(BNames.hetznerKey), hetznerKey: box.get(BNames.hetznerKey),
cloudFlareKey: box.get(BNames.cloudFlareKey), cloudFlareKey: box.get(BNames.cloudFlareKey),

View File

@ -100,6 +100,7 @@ class _TextButton extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return GestureDetector( return GestureDetector(
onTap: onPressed, onTap: onPressed,
behavior: HitTestBehavior.opaque,
child: Container( child: Container(
height: 48, height: 48,
width: double.infinity, width: double.infinity,

View File

@ -13,7 +13,6 @@ class BrandCard extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.only(bottom: 30),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).brightness == Brightness.dark color: Theme.of(context).brightness == Brightness.dark
? BrandColors.black ? BrandColors.black

View File

@ -47,25 +47,20 @@ class InitializingPage extends StatelessWidget {
body: ListView( body: ListView(
children: [ children: [
Padding( Padding(
padding: brandPagePadding1, padding: brandPagePadding2.copyWith(top: 10, bottom: 10),
child: Column( child: ProgressBar(
crossAxisAlignment: CrossAxisAlignment.center, steps: [
children: [ 'Hetzner',
ProgressBar( 'CloudFlare',
steps: [ 'Backblaze',
'Hetzner', 'Domain',
'CloudFlare', 'User',
'Backblaze', 'Server',
'Domain', '',
'User', '',
'Server', ''
'',
'',
''
],
activeIndex: cubit.state.progress,
),
], ],
activeIndex: cubit.state.progress,
), ),
), ),
_addCard( _addCard(
@ -84,7 +79,6 @@ class InitializingPage extends StatelessWidget {
(predicate) => false, (predicate) => false,
); );
}), }),
SizedBox(height: 30),
], ],
), ),
), ),
@ -415,7 +409,7 @@ class InitializingPage extends StatelessWidget {
BrandButton.rised( BrandButton.rised(
onPressed: onPressed:
isLoading! ? null : appConfigCubit.createServerAndSetDnsRecords, isLoading! ? null : appConfigCubit.createServerAndSetDnsRecords,
title: isLoading ? 'loading' : 'initializing.11'.tr(), title: isLoading ? 'basis.loading'.tr() : 'initializing.11'.tr(),
), ),
Spacer(flex: 2), Spacer(flex: 2),
BrandButton.text( BrandButton.text(
@ -472,7 +466,7 @@ class InitializingPage extends StatelessWidget {
Widget _addCard(Widget child) { Widget _addCard(Widget child) {
return Container( return Container(
height: 500, height: 450,
padding: brandPagePadding2, padding: brandPagePadding2,
child: BrandCard(child: child), child: BrandCard(child: child),
); );