shas6395----- #56
@ -24,8 +24,8 @@ import 'globals.dart' as globals;
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
// await Firebase.initializeApp();
|
||||
//await loadAllVenues();
|
||||
//await fetchWeather();
|
||||
await loadAllVenues();
|
||||
await fetchWeather();
|
||||
|
||||
runApp(MyApp());
|
||||
}
|
||||
@ -33,7 +33,7 @@ void main() async {
|
||||
Future fetchWeather() async {
|
||||
WeatherData tempWeather = WeatherData(0, 0);
|
||||
Uri weatherDataURI = Uri.parse(
|
||||
'https://group-4-75.pvt.dsv.su.se/target/weather-0.0.2-SNAPSHOT.war/weather');
|
||||
'https://group-4-75.pvt.dsv.su.se/target/info.war//weather');
|
||||
|
||||
final response = await http.get(weatherDataURI);
|
||||
|
||||
@ -67,7 +67,7 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
Future loadAllVenues() async {
|
||||
Uri venueDataURI = Uri.parse(
|
||||
'https://group-4-75.pvt.dsv.su.se/target/weather-0.0.4-SNAPSHOT.war/venue');
|
||||
'https://group-4-75.pvt.dsv.su.se/target/info.war//venue');
|
||||
|
||||
final response = await http.get(venueDataURI);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user