mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-26 18:56:38 +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;
|
||||
|
||||
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…
Reference in a new issue