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: '',
|
||||
heroIcon: BrandIcons.globe,
|
||||
heroTitle: 'providers.domain.screen_title'.tr(),
|
||||
children: <Widget>[
|
||||
FilledCard(
|
||||
child: ListTile(
|
||||
title: Text(
|
||||
'not_ready_card.in_menu'.tr(),
|
||||
style: Theme.of(context).textTheme.headline6,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
heroSubtitle: 'not_ready_card.in_menu'.tr(),
|
||||
children: const [],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -115,8 +115,10 @@ class _Card extends StatelessWidget {
|
|||
final domainName = UiHelpers.getDomainName(config);
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => Navigator.of(context)
|
||||
.push(materialRoute(ServicePage(serviceId: serviceType.name))),
|
||||
onTap: isReady
|
||||
? () => Navigator.of(context)
|
||||
.push(materialRoute(ServicePage(serviceId: serviceType.name)))
|
||||
: null,
|
||||
child: BrandCards.big(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
|
Loading…
Reference in a new issue