mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
Fix screens when no server initialized
This commit is contained in:
parent
c84d16d8b7
commit
3d34f0bb55
|
@ -94,16 +94,8 @@ class _DnsDetailsPageState extends State<DnsDetailsPage> {
|
||||||
headerTitle: '',
|
headerTitle: '',
|
||||||
heroIcon: BrandIcons.globe,
|
heroIcon: BrandIcons.globe,
|
||||||
heroTitle: 'providers.domain.screen_title'.tr(),
|
heroTitle: 'providers.domain.screen_title'.tr(),
|
||||||
children: <Widget>[
|
heroSubtitle: 'not_ready_card.in_menu'.tr(),
|
||||||
FilledCard(
|
children: const [],
|
||||||
child: ListTile(
|
|
||||||
title: Text(
|
|
||||||
'not_ready_card.in_menu'.tr(),
|
|
||||||
style: Theme.of(context).textTheme.headline6,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -115,8 +115,10 @@ class _Card extends StatelessWidget {
|
||||||
final domainName = UiHelpers.getDomainName(config);
|
final domainName = UiHelpers.getDomainName(config);
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () => Navigator.of(context)
|
onTap: isReady
|
||||||
.push(materialRoute(ServicePage(serviceId: serviceType.name))),
|
? () => Navigator.of(context)
|
||||||
|
.push(materialRoute(ServicePage(serviceId: serviceType.name)))
|
||||||
|
: null,
|
||||||
child: BrandCards.big(
|
child: BrandCards.big(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
|
Loading…
Reference in a new issue