DiscoverModule/lib/provider_class/trials_provider.dart

17 lines
357 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;
trialsdata() async {
final jsonres = await callapi.getalltrials();
trials = jsonres;
notifyListeners();
}
}