17 lines
357 B
Dart
17 lines
357 B
Dart
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();
|
|
}
|
|
}
|