mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-28 19:56:50 +00:00
fix markup
This commit is contained in:
parent
e4f154b4f5
commit
7d12b85f89
|
@ -27,9 +27,17 @@ class _ProvidersPageState extends State<ProvidersPage> {
|
||||||
var isReady = context.watch<AppConfigCubit>().state.isFullyInitilized;
|
var isReady = context.watch<AppConfigCubit>().state.isFullyInitilized;
|
||||||
|
|
||||||
final cards = ProviderType.values
|
final cards = ProviderType.values
|
||||||
.map((type) => _Card(
|
.map(
|
||||||
provider:
|
(type) => Padding(
|
||||||
ProviderModel(state: StateType.uninitialized, type: type)))
|
padding: EdgeInsets.only(bottom: 30),
|
||||||
|
child: _Card(
|
||||||
|
provider: ProviderModel(
|
||||||
|
state: isReady ? StateType.stable : StateType.uninitialized,
|
||||||
|
type: type,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
.toList();
|
.toList();
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: PreferredSize(
|
appBar: PreferredSize(
|
||||||
|
|
|
@ -40,7 +40,14 @@ class _ServicesPageState extends State<ServicesPage> {
|
||||||
BrandText.body1('services.title'.tr()),
|
BrandText.body1('services.title'.tr()),
|
||||||
SizedBox(height: 24),
|
SizedBox(height: 24),
|
||||||
if (!isReady) ...[NotReadyCard(), 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…
Reference in a new issue