DiscoverModule/lib/provider_class/trials_provider.dart

17 lines
365 B
Dart
Raw Normal View History

2024-07-05 08:48:29 +00:00
import 'package:discover_module/service.dart/service.dart';
import 'package:flutter/cupertino.dart';
class TrialsProvider extends ChangeNotifier {
final callapi = Callapi();
List trials = [];
List get trialsinfo => trials;
2024-08-30 12:24:54 +00:00
trialsdata(text) async {
final jsonres = await callapi.getalltrials(text);
2024-07-05 08:48:29 +00:00
trials = jsonres;
notifyListeners();
}
}