2022-08-12 20:07:16 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:revanced_manager/ui/views/contributors/contributors_viewmodel.dart';
|
2022-08-21 12:47:44 +02:00
|
|
|
import 'package:revanced_manager/ui/widgets/contributorsView/contributors_card.dart';
|
2022-08-12 20:07:16 +02:00
|
|
|
import 'package:stacked/stacked.dart';
|
|
|
|
|
|
|
|
class ContributorsView extends StatelessWidget {
|
|
|
|
const ContributorsView({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return ViewModelBuilder<ContributorsViewModel>.reactive(
|
|
|
|
viewModelBuilder: () => ContributorsViewModel(),
|
|
|
|
onModelReady: (model) => model.getContributors(),
|
|
|
|
builder: (context, model, child) => Scaffold(
|
|
|
|
body: SafeArea(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Column(
|
2022-09-02 15:35:25 +02:00
|
|
|
children: <Widget>[
|
2022-08-12 20:07:16 +02:00
|
|
|
ContributorsCard(
|
2022-08-31 10:36:36 +02:00
|
|
|
title: 'Patcher Contributors',
|
2022-08-12 20:07:16 +02:00
|
|
|
contributors: model.patcherContributors,
|
|
|
|
height: 60,
|
|
|
|
),
|
|
|
|
ContributorsCard(
|
2022-08-31 10:36:36 +02:00
|
|
|
title: 'Patches Contributors',
|
2022-08-12 20:07:16 +02:00
|
|
|
contributors: model.patchesContributors,
|
|
|
|
height: 230,
|
|
|
|
),
|
|
|
|
ContributorsCard(
|
2022-08-31 10:36:36 +02:00
|
|
|
title: 'Integrations Contributors',
|
2022-08-12 20:07:16 +02:00
|
|
|
contributors: model.integrationsContributors,
|
|
|
|
height: 230,
|
|
|
|
),
|
|
|
|
ContributorsCard(
|
2022-08-31 10:36:36 +02:00
|
|
|
title: 'CLI Contributors',
|
2022-08-12 20:07:16 +02:00
|
|
|
contributors: model.cliContributors,
|
|
|
|
height: 180,
|
|
|
|
),
|
|
|
|
ContributorsCard(
|
2022-08-31 10:36:36 +02:00
|
|
|
title: 'Manager Contributors',
|
2022-08-12 20:07:16 +02:00
|
|
|
contributors: model.managerContributors,
|
|
|
|
height: 130,
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|