creta_world_weather_api 0.1.0 copy "creta_world_weather_api: ^0.1.0" to clipboard
creta_world_weather_api: ^0.1.0 copied to clipboard

Weather API library for Creta widgets using met.no data with global city coverage.

Creta World Weather API #

met.no 기상 데이터를 활용하여 Flutter 애플리케이션에서 간단히 현재 날씨를 조회할 수 있도록 지원하는 라이브러리입니다.

구조 개요 #

  • lib/creta_world_weather_api.dart: 라이브러리 진입점. 주요 클래스와 모델을 export.
  • lib/src/creta_world_weather_api.dart: 싱글톤 API 클래스 구현.
  • lib/src/models/: 데이터 모델 정의.
  • lib/src/services/: met.no API 연동 및 국가/도시 리포지토리.
  • lib/src/data/: 정적 데이터셋.
  • example/: 라이브러리 사용 예제 Flutter 앱.
  • assets/data/: 확장 가능한 국가/도시 데이터셋 저장 위치.

빠른 시작 #

final api = CretaWorldWeatherAPI.instance;
final weather = await api.getWeatherNow(city: 'seoul', nationCode: 'KR');
print(weather.temperature);

예제 실행 #

flutter pub get
flutter run -d chrome example/main.dart
0
likes
130
points
27
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Weather API library for Creta widgets using met.no data with global city coverage.

License

MIT (license)

Dependencies

flutter, http, intl

More

Packages that depend on creta_world_weather_api