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(
|
|
|
|
floatingActionButton: FloatingActionButton(
|
|
|
|
onPressed: () => model.getContributors(),
|
|
|
|
child: const Icon(Icons.refresh),
|
|
|
|
),
|
|
|
|
body: SafeArea(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
ContributorsCard(
|
|
|
|
title: "Patcher Contributors",
|
|
|
|
contributors: model.patcherContributors,
|
|
|
|
height: 60,
|
|
|
|
),
|
|
|
|
ContributorsCard(
|
|
|
|
title: "Patches Contributors",
|
|
|
|
contributors: model.patchesContributors,
|
|
|
|
height: 230,
|
|
|
|
),
|
|
|
|
ContributorsCard(
|
|
|
|
title: "Integrations Contributors",
|
|
|
|
contributors: model.integrationsContributors,
|
|
|
|
height: 230,
|
|
|
|
),
|
|
|
|
ContributorsCard(
|
|
|
|
title: "CLI Contributors",
|
|
|
|
contributors: model.cliContributors,
|
|
|
|
height: 180,
|
|
|
|
),
|
|
|
|
ContributorsCard(
|
|
|
|
title: "Manager Contributors",
|
|
|
|
contributors: model.managerContributors,
|
|
|
|
height: 130,
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|