open_weather_client 1.0.0 open_weather_client: ^1.0.0 copied to clipboard
Unofficial OpenWeather package for Current and Forecast weather data.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add open_weather_client
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
open_weather_client: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:open_weather_client/enums/weather_units.dart';
import 'package:open_weather_client/models/coordinates.dart';
import 'package:open_weather_client/models/coordinates.g.dart';
import 'package:open_weather_client/models/details.dart';
import 'package:open_weather_client/models/details.g.dart';
import 'package:open_weather_client/models/temperature.dart';
import 'package:open_weather_client/models/temperature.g.dart';
import 'package:open_weather_client/models/weather_data.dart';
import 'package:open_weather_client/models/weather_data.g.dart';
import 'package:open_weather_client/models/weather_forecast_data.dart';
import 'package:open_weather_client/models/weather_forecast_data.g.dart';
import 'package:open_weather_client/models/wind.dart';
import 'package:open_weather_client/models/wind.g.dart';
import 'package:open_weather_client/open_weather.dart';
import 'package:open_weather_client/services/open_weather_api_service.dart';
import 'package:open_weather_client/utils/constants.dart';
import 'package:open_weather_client/widgets/modules/location_view_widget.dart';
import 'package:open_weather_client/widgets/modules/weather_description_view_widget.dart';
import 'package:open_weather_client/widgets/modules/weather_summary_widget.dart';
import 'package:open_weather_client/widgets/weather_widget_by_city.dart';
import 'package:open_weather_client/widgets/weather_widget_by_location.dart';
import 'package:open_weather_client/widgets/weather_widget_by_zip_code.dart';