fdroid
Kherel 2 years ago
parent e4f154b4f5
commit 7d12b85f89
  1. 14
      lib/ui/pages/providers/providers.dart
  2. 9
      lib/ui/pages/services/services.dart

@ -27,9 +27,17 @@ class _ProvidersPageState extends State<ProvidersPage> {
var isReady = context.watch<AppConfigCubit>().state.isFullyInitilized;
final cards = ProviderType.values
.map((type) => _Card(
provider:
ProviderModel(state: StateType.uninitialized, type: type)))
.map(
(type) => Padding(
padding: EdgeInsets.only(bottom: 30),
child: _Card(
provider: ProviderModel(
state: isReady ? StateType.stable : StateType.uninitialized,
type: type,
),
),
),
)
.toList();
return Scaffold(
appBar: PreferredSize(

@ -40,7 +40,14 @@ class _ServicesPageState extends State<ServicesPage> {
BrandText.body1('services.title'.tr()),
SizedBox(height: 24),
if (!isReady) ...[NotReadyCard(), SizedBox(height: 24)],
...ServiceTypes.values.map((t) => _Card(serviceType: t)).toList()
...ServiceTypes.values
.map((t) => Padding(
padding: EdgeInsets.only(
bottom: 30,
),
child: _Card(serviceType: t),
))
.toList()
],
),
);

Loading…
Cancel
Save