weather_pack 0.0.1 copy "weather_pack: ^0.0.1" to clipboard
weather_pack: ^0.0.1 copied to clipboard

The project is designed to obtain weather via the OpenWeatherMap API. With handy features. :)

example/example.md

How do I get the current weather forecast? #

The easiest way is shown below. You can find a full example here TODO

import 'package:weather_pack/weather_pack.dart';

Future<void> main() async {
  const api = 'YOUR_APIKEY'; // TODO: change to your Openweathermap APIkey
  final wService = WeatherService(api);

  // get the current weather in Amsterdam
  final WeatherCurrent currently = await wService.currentWeatherByLocation(
      latitude: 52.374, longitude: 4.88969);
  
  print(currently);
}
11
likes
0
pub points
66%
popularity

Publisher

unverified uploader

The project is designed to obtain weather via the OpenWeatherMap API. With handy features. :)

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on weather_pack