2024-01-27 13:51:45 +00:00
|
|
|
import 'package:aurcache/api/aur.dart';
|
|
|
|
import 'package:aurcache/models/aur_package.dart';
|
|
|
|
|
|
|
|
import '../api/API.dart';
|
|
|
|
import 'BaseProvider.dart';
|
|
|
|
|
|
|
|
class AurSearchDTO {
|
|
|
|
final String query;
|
|
|
|
|
|
|
|
AurSearchDTO({required this.query});
|
|
|
|
}
|
|
|
|
|
|
|
|
class AURSearchProvider extends BaseProvider<List<AurPackage>, AurSearchDTO> {
|
|
|
|
@override
|
|
|
|
loadFuture(context, {dto}) {
|
|
|
|
data = API.getAurPackages(dto!.query);
|
2024-02-11 22:05:39 +00:00
|
|
|
this.dto = dto;
|
2024-01-27 13:51:45 +00:00
|
|
|
}
|
|
|
|
}
|