Flutter_weather_forecast - A weather forecast widget for Turkey

Overview

flutter_weather_forecast

A weather forecast widget for Turkey.Weather data provided by the General Directorate of Meteorology.

Table of contents

Demo

Installation

dependencies:
  flutter_weather_forecast: ^1.1.2

Using

import 'package:flutter/material.dart';
import 'package:flutter_weather_forecast/flutter_weather_forecast.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Weather Forecast by @coskuncay'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: const [
            WeatherForecast(),
            WeatherForecast(
              stationNo: '32',
            ),
            WeatherForecast(
              stationNo: '34',
            ),
            WeatherForecast(
              stationNo: '36',
            ),
            WeatherForecast(
              stationNo: '01',
            ),
            WeatherForecast(
              stationNo: '43',
            ),
          ],
        ),
      ),
    );
  }
}

WeatherForecast

Name Type Default
stationNo String required
keyFontSize double 13
valueFontSize double 11
statusFontSize double 16
weatherFontSize double 26
timeFontSize double 13
refreshIconSize double 20
imageScale double .8
containerHeight double ScreenHeight * .15
borderColor Color Color(0XFFACAEBA)
keyColor Color Color(0XFFACAEBA)
valueColor Color Colors.black
weatherColor Color Colors.black
timeColor Color Color(0XFFACAEBA)
backgroundColor Color Colors.white
statusColor Color Colors.black
verticalPadding double 8
horizontalPadding double 8

License

MIT Copyright (c) 2022, Emre Coşkunçay

You might also like...

(Complete flutter application) Exam and training app as social media, prepared with Firebase backend services, Bloc State management, Singleton design pattern, Unit and widget tests, firebase mocking, Custom local libraries, etc.

(Complete flutter application) Exam and training app as social media, prepared with Firebase backend services, Bloc State management, Singleton design pattern, Unit and widget tests, firebase mocking, Custom local libraries, etc.

(Complete flutter application) Exam and training app as social media, prepared with Firebase backend services, Bloc State management, Singleton design pattern, Unit and widget tests, firebase mocking, Custom local libraries, etc.

Jul 14, 2022

This app I used for my daily practice flutter widget and code from afgprogrammer.

This app I used for my daily practice flutter widget and code from afgprogrammer.

inspiration_app A new Inspiration App Flutter project. design view Code by afgprogrammer. Getting Started This project is a starting point for a Flutt

Oct 7, 2021

Wraps flutter_svg and the Flutter SDK image providers and picks the right widget based on the file extension

Hybrid Image Wraps flutter_svg and the Flutter SDK image providers and picks the right widget based on the file extension Features As of right now it'

Jun 18, 2022

Simple Counter App in Flutter with unit, widget and integration tests

Simple Counter App in Flutter with unit, widget and integration tests

Nov 12, 2021

Flutter widget example.

Flutter widget example.

Flutter examples Here you can find some Flutter examples. Development Setup Clone the repository and run the following commands: flutter pub get flutt

Dec 27, 2022

FTFS is a Flutter package which uses a TextField Widget to search and select a value from a list

FTFS is a Flutter package which uses a TextField Widget to search and select a value from a list

FTFS is a Flutter package which uses a TextField Widget to search and select a value from a list. It's a simple, lightweight, and fully tested package unlike other "autocomplete" or textfield search packages.

Jan 5, 2022

UnDraw is a Flutter widget that provides 700+ illustrations

undraw/UnDraw UnDraw is a Flutter widget that provides 700+ illustrations, designed by Katerina Limpitsouni and developed by westdabestdb. Getting Sta

Oct 12, 2022

Flutter Widget Quiz, made for Flutter Create (Source code size is limited to 5KB)

widget_quiz The branch for Flutter Create: https://github.com/mono0926/widget-quiz/tree/5k Getting Started This project is a starting point for a Flut

Oct 14, 2022

It's flutter weather project using "openweathermap(api)" and it just show the one city's weather forecast

flutter_weather A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Dec 24, 2021

Using Open Weather API, its app show weather forecast.

weather_forecast Using Open Weather API, its app show weather forecast. To show use this application, you have to add your apiKey into weather_forecas

Dec 28, 2021

A weather application that show the current weather for your location and forecast for 6 days, and favorite city and other locations

A weather application that show the current weather for your location and forecast for 6 days, and favorite city and other locations

Weather Application App concept created with Flutter using Dart programming language ad it's a demanded task in my internship at Algoriza About An app

Nov 13, 2022

An android app built using flutter that displays and forecast the specific city Weather and Climate for dynamic time event by collecting the data from API that is provided for free by OPENWEATHER site.

clima_weather_reporter A new Flutter application. Getting Started This project is a starting point for a Flutter application. A few resources to get y

Feb 3, 2022

This is a sample Flutter Weather Forecast App for Android and iOS.

This is a sample Flutter Weather Forecast App for Android and iOS.

Basic Flutter (Android + iOS) App (Dart + Dio) - Weather App This is a very beginning friendly project of Flutter. A simple weather forecast App using

Nov 29, 2022

A basic weather forecast app built using openweathermap API

A basic weather forecast app built using openweathermap API

Forecast A basic weather forecast app built using https://openweathermap.org/api API Features 5 hours forecast Curent forecast 5 days forecast Look up

Nov 29, 2022

A API integrated 5 day weather forecast and prediction application created using flutter framework and Dart language.

A API integrated 5 day weather forecast and prediction application created using flutter framework and Dart language. This API used here is OPEN WEATHER API, which specializes in predicting the weather of any city in this world.

Dec 26, 2021

App that shows your current location weather and forecast

App that shows your current location weather and forecast

Weather APP Platform: Flutter. A project that shows you the weather and the forecast for the next five days in your current location. Uses openweather

Aug 13, 2022

Weather app A complete simple weather application.

Weather app A complete simple weather application.

Weather app A complete simple weather application. Getting Started Get your own API key from: open weathe map aqicn Google Cloud Platform Setup for go

Oct 25, 2022

A sophisticated weather app, works with your location or name of any place. Gives detailed summary of weather condition.

clima_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if thi

Sep 7, 2022

A weather app that fetches weather data from openweathermap.org

weather_forecast A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Jan 9, 2022
Owner
emre
VueJS Developer | Flutter Lover
emre
Weather App - Test application Weather for 8app.ru

Weather App Test application Weather for 8app.ru Getting Started In order to run the first build of the application, use the Makefile for code generat

Dmitry Munitsyn 0 Apr 15, 2022
A simple fully working weather app with state management build using flutter.

A simple fully working weather app with state management build using flutter.

null 5 Apr 12, 2022
A Brand New Flutter Weather App

A Brand New Flutter Weather App

null 3 Aug 25, 2022
Weather App Using Flutter

weather_app A new Flutter project. ITS NOT COMPLETED YET!! Getting Started This project is a starting point for a Flutter application. A few resources

Muhammad S. dev 2 Oct 6, 2022
Fetch weather data from cities around the globe!

Weather Today: A weather app built with mobX and the MetaWeather API This project is my first one build in flutter, and I was inspired by the Flutter

Rafaela Martins 63 Dec 31, 2022
Weather app with http

weather_application_http A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you

null 0 Oct 29, 2021
A Flutter Project to display arduino sensors values about weather

worldwide_weather_watcher A new Flutter project. Getting Started This project is a starting point for a Flutter application. The Arduino send each 10

null 3 Nov 2, 2022
ESP32 Weather Station with Flutter

ESP32-Weather-Station-with-Flutter Full Tutotial on Youtube : https://youtu.be/1pDnYhamIeA Getting Started This project is a starting point for a Flut

null 0 Jan 13, 2022
A Simple Weather App Using Flutter

Hi there, I'm Ayush Maji ! ?? weather_app Use the Weather app to check the weather for your current location or in other places. You can view the hour

AyushMaji 3 Apr 20, 2022
Flutter | Because a widget-driven development requires a widget-driven preview.

Create samples of your widgets and preview them in real time This project is experimental but safe to use as not code is added during compilation. It

Jaime Blasco 242 Dec 27, 2022