feat: Show changelogs from the latest to the last used patches version (#2219)

This commit is contained in:
aAbed
2024-10-21 16:02:23 +05:45
committed by GitHub
parent bd96701103
commit daba737ecb
7 changed files with 54 additions and 23 deletions

View File

@ -105,9 +105,7 @@ class UpdateConfirmationSheet extends StatelessWidget {
),
),
FutureBuilder<String?>(
future: !isPatches
? model.getManagerChangelogs()
: model.getLatestPatchesChangelog(),
future: model.getChangelogs(isPatches),
builder: (_, snapshot) {
if (!snapshot.hasData) {
return Padding(
@ -117,7 +115,6 @@ class UpdateConfirmationSheet extends StatelessWidget {
),
);
}
return Container(
margin: const EdgeInsets.symmetric(horizontal: 24.0),
decoration: BoxDecoration(