Base Flutter App
This commit is contained in:
11
web_native/lib/services/exampleapi.dart
Normal file
11
web_native/lib/services/exampleapi.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'dart:async';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
Future<String> exampleApi(String orgid) async {
|
||||
http.Response response = await http.get(
|
||||
Uri.encodeFull("https://www.example.com/api"),
|
||||
);
|
||||
print("Respone ${response.body.toString()}");
|
||||
//Returns 'true' or 'false' as a String
|
||||
return response.body;
|
||||
}
|
||||
Reference in New Issue
Block a user