KonectarEvents/lib/contacts_module/provider_class/trials_provider.dart

23 lines
588 B
Dart
Raw Permalink Normal View History

2024-10-08 12:01:59 +00:00
import 'package:konectar_events/contacts_module/service.dart/service.dart';
import 'package:konectar_events/contacts_module/storage_hive/trials_data/crud_trials.dart';
import 'package:flutter/cupertino.dart';
class TrialsProvider extends ChangeNotifier {
final callapi = Callapi();
List trials = [];
List get trialsinfo => trials;
trialsdata(text) async {
final jsonres = await callapi.getalltrials(text);
trials = jsonres;
notifyListeners();
}
storeTrials(row) async {
final jsonres = await callapi.getalltrials(row);
await addTrials(jsonres);
}
}