stormy_streamer
Is a simple SDK package that gives the ability to search weather information for any location. It also contains simple weather forecast widget.
Simple forecast widget using default Open Meteo API
StormyForecastPanel(
dateFrom: DateTime.now(),
longitude: longitude,
latitude: latitude,
),
If you want to use Tomorrow API
ForecastController tomorrowForecastController = ForecastController(
configuration: const StormyConfiguration(
//TODO replace with valid API key
apiKey: 'API_KEY',
units: Units.metric,
weatheApiService: WeatheApiService.tomorrow,
),
);
StormyForecastPanel(
dateFrom: DateTime.now(),
longitude: longitude,
latitude: latitude,
controller: tomorrowForecastController,
),
If you want to just use access to API to get weather data
StormyPredictor predictor = StormyPredictor();
final forecast = await predictor.fiveDaysForecast(latitude, longitude, DateTime.now());