fix markup

fdroid
Kherel 2021-03-25 09:54:39 +01:00
parent e4f154b4f5
commit 7d12b85f89
2 changed files with 19 additions and 4 deletions

View File

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

View File

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