add page for aur search

install aur package by button click
This commit is contained in:
2024-01-27 14:51:45 +01:00
parent bb34e56be0
commit c924a151cb
11 changed files with 262 additions and 36 deletions

View File

@ -26,6 +26,15 @@ class _APIBuilderState<T extends BaseProvider, K, DTO>
extends State<APIBuilder<T, K, DTO>> {
Timer? timer;
@override
void didUpdateWidget(APIBuilder<T, K, DTO> oldWidget) {
if (oldWidget.dto != widget.dto) {
Provider.of<T>(context, listen: false)
.loadFuture(context, dto: widget.dto);
}
super.didUpdateWidget(oldWidget);
}
@override
void initState() {
super.initState();