Fix screens when no server initialized

pull/116/head
Inex Code 2022-09-16 17:14:29 +03:00
parent c84d16d8b7
commit 3d34f0bb55
2 changed files with 6 additions and 12 deletions

View File

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

View File

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