From 2b9f965f895c5993a971f52df5c300bf29ae0fe9 Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Wed, 28 Feb 2024 13:48:13 +0100 Subject: [PATCH 1/3] Update deps and CI --- .github/workflows/ci.yml | 54 ++++++++++ lib/app/forecast_tile.dart | 61 ++++++----- lib/app/today_tile.dart | 12 +-- lib/app/utils.dart | 2 +- lib/app/weather_page.dart | 12 ++- pubspec.lock | 200 ++++++++++++++++++------------------- pubspec.yaml | 14 +-- 7 files changed, 209 insertions(+), 146 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..af90e3c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +name: CI + +on: + pull_request: + branches: [main] + +env: + FLUTTER_VERSION: '3.16.x' + +jobs: + analyze: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + flutter-version: ${{env.FLUTTER_VERSION}} + - run: flutter pub get + - run: flutter analyze --fatal-infos + + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + flutter-version: ${{env.FLUTTER_VERSION}} + - run: flutter pub get + - run: dart format --set-exit-if-changed . + +# test: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 +# - uses: subosito/flutter-action@v2 +# with: +# channel: 'stable' +# flutter-version: ${{env.FLUTTER_VERSION}} +# - run: flutter test + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + flutter-version: ${{env.FLUTTER_VERSION}} + - run: sudo apt update + - run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libmpv-dev + - run: flutter pub get + - run: flutter build linux -v \ No newline at end of file diff --git a/lib/app/forecast_tile.dart b/lib/app/forecast_tile.dart index 2856c14..7f090ad 100644 --- a/lib/app/forecast_tile.dart +++ b/lib/app/forecast_tile.dart @@ -6,8 +6,9 @@ import 'package:pulse/app/utils.dart'; import 'package:pulse/string_x.dart'; import 'package:pulse/weather_data_x.dart'; -class ForecastTile extends StatelessWidget { - final WeatherData data; +class ForecastTile extends StatefulWidget { + final List data; + final WeatherData selectedData; final String? cityName; final double fontSize; final String? position; @@ -20,7 +21,7 @@ class ForecastTile extends StatelessWidget { const ForecastTile({ super.key, - required this.data, + required this.selectedData, this.cityName, this.fontSize = 20, this.position, @@ -30,8 +31,14 @@ class ForecastTile extends StatelessWidget { required this.padding, this.time, this.borderRadius = const BorderRadius.all(Radius.circular(10)), + required this.data, }); + @override + State createState() => _ForecastTileState(); +} + +class _ForecastTileState extends State { @override Widget build(BuildContext context) { final theme = Theme.of(context); @@ -44,7 +51,7 @@ class ForecastTile extends StatelessWidget { color: Colors.black.withOpacity(0.8), offset: const Offset(0, 1), blurRadius: 3, - ) + ), ], ); @@ -53,30 +60,30 @@ class ForecastTile extends StatelessWidget { mainAxisSize: MainAxisSize.min, children: [ Text( - data.currentTemperature, + widget.selectedData.currentTemperature, style: style, ), Text( - 'Feels like: ${data.feelsLike}', + 'Feels like: ${widget.selectedData.feelsLike}', style: style, ), Text( - 'Wind: ${data.windSpeed}', + 'Wind: ${widget.selectedData.windSpeed}', style: style, ), ], ), - if (day != null) + if (widget.day != null) Column( mainAxisSize: MainAxisSize.min, children: [ Text( - day!, + widget.day!, style: style, ), - if (time != null) + if (widget.time != null) Text( - time!, + widget.time!, style: style, ), ], @@ -84,29 +91,29 @@ class ForecastTile extends StatelessWidget { Row( mainAxisSize: MainAxisSize.min, children: [ - getIcon(data, theme.colorScheme), + getIcon(widget.selectedData, theme.colorScheme), const SizedBox( width: 10, ), Text( - data.longDescription.capitalize(), + widget.selectedData.longDescription.capitalize(), textAlign: TextAlign.center, style: style, overflow: TextOverflow.ellipsis, - ) + ), ], ), - if (cityName != null) + if (widget.cityName != null) Text( - cityName!, + widget.cityName!, style: style, ) - else if (position != null) + else if (widget.position != null) Text( - position ?? '', + widget.position ?? '', style: style, textAlign: TextAlign.center, - ) + ), ]; final banner = Card( @@ -115,11 +122,11 @@ class ForecastTile extends StatelessWidget { Opacity( opacity: light ? 1 : 0.4, child: ClipRRect( - borderRadius: borderRadius, + borderRadius: widget.borderRadius, child: WeatherBg( - weatherType: getWeatherType(data), - width: width ?? double.infinity, - height: height ?? double.infinity, + weatherType: getWeatherType(widget.selectedData), + width: widget.width ?? double.infinity, + height: widget.height ?? double.infinity, ), ), ), @@ -135,16 +142,16 @@ class ForecastTile extends StatelessWidget { children: children, ), ), - ) + ), ], ), ); return SizedBox( - width: width, - height: height, + width: widget.width, + height: widget.height, child: Padding( - padding: padding, + padding: widget.padding, child: banner, ), ); diff --git a/lib/app/today_tile.dart b/lib/app/today_tile.dart index a995f7a..b9ce0a4 100644 --- a/lib/app/today_tile.dart +++ b/lib/app/today_tile.dart @@ -18,7 +18,7 @@ class TodayTile extends StatelessWidget { final String? time; const TodayTile({ - Key? key, + super.key, required this.data, this.cityName, this.fontSize = 20, @@ -28,7 +28,7 @@ class TodayTile extends StatelessWidget { this.day, required this.padding, this.time, - }) : super(key: key); + }); @override Widget build(BuildContext context) { @@ -42,7 +42,7 @@ class TodayTile extends StatelessWidget { color: Colors.black.withOpacity(0.8), offset: const Offset(0, 1), blurRadius: 3, - ) + ), ], ); @@ -91,7 +91,7 @@ class TodayTile extends StatelessWidget { textAlign: TextAlign.center, style: style, overflow: TextOverflow.ellipsis, - ) + ), ], ), if (cityName != null) @@ -107,7 +107,7 @@ class TodayTile extends StatelessWidget { style: style, textAlign: TextAlign.center, ), - ) + ), ]; final banner = Card( @@ -134,7 +134,7 @@ class TodayTile extends StatelessWidget { runAlignment: WrapAlignment.center, children: children, ), - ) + ), ], ), ); diff --git a/lib/app/utils.dart b/lib/app/utils.dart index 329c306..c548170 100644 --- a/lib/app/utils.dart +++ b/lib/app/utils.dart @@ -45,7 +45,7 @@ Icon getIcon( color: Colors.black.withOpacity(0.8), offset: const Offset(0, 1), blurRadius: 3, - ) + ), ]; switch (weatherData.shortDescription) { diff --git a/lib/app/weather_page.dart b/lib/app/weather_page.dart index 47afdf8..b5262a9 100644 --- a/lib/app/weather_page.dart +++ b/lib/app/weather_page.dart @@ -42,7 +42,8 @@ class WeatherPage extends StatelessWidget { padding: const EdgeInsets.only(bottom: 20), day: todayForecast.getDate(context), time: todayForecast.getTime(context), - data: todayForecast, + selectedData: todayForecast, + data: const [], fontSize: 15, ), if (model.notTodayForeCast.isNotEmpty == true) @@ -53,10 +54,11 @@ class WeatherPage extends StatelessWidget { padding: const EdgeInsets.only(bottom: 20), day: model.notTodayForeCast[i].getDate(context), time: model.notTodayForeCast[i].getTime(context), - data: model.notTodayForeCast[i], + selectedData: model.notTodayForeCast[i], + data: const [], fontSize: 15, // borderRadius: getBorderRadius(i, model.notTodayForeCast), - ) + ), ]; final scaffold = Scaffold( backgroundColor: model.data == null @@ -99,7 +101,7 @@ class WeatherPage extends StatelessWidget { fontSize: 20, cityName: model.cityName, ), - ...foreCastTiles + ...foreCastTiles, ], ); @@ -127,7 +129,7 @@ class WeatherPage extends StatelessWidget { child: ListView( children: foreCastTiles, ), - ) + ), ], ), ); diff --git a/pubspec.lock b/pubspec.lock index 3018579..c0d6fd6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -45,10 +45,10 @@ packages: dependency: "direct main" description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.18.0" crypto: dependency: transitive description: @@ -61,10 +61,10 @@ packages: dependency: transitive description: name: dbus - sha256: "6f07cba3f7b3448d42d015bfd3d53fe12e5b36da2423f23838efc1d5fb31a263" + sha256: "365c771ac3b0e58845f39ec6deebc76e3276aa9922b0cc60840712094d9047ac" url: "https://pub.dev" source: hosted - version: "0.7.8" + version: "0.7.10" fake_async: dependency: transitive description: @@ -77,18 +77,18 @@ packages: dependency: transitive description: name: ffi - sha256: ed5337a5660c506388a9f012be0288fb38b49020ce2b45fe1f8b8323fe429f99 + sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" url: "https://pub.dev" source: hosted - version: "2.0.2" - file: + version: "2.1.0" + fixnum: dependency: transitive description: - name: file - sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" + name: fixnum + sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "1.1.0" flutter: dependency: "direct main" description: flutter @@ -98,10 +98,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: "2118df84ef0c3ca93f96123a616ae8540879991b8b57af2f81b76a7ada49b2a4" + sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 url: "https://pub.dev" source: hosted - version: "2.0.2" + version: "3.0.1" flutter_test: dependency: "direct dev" description: flutter @@ -141,66 +141,66 @@ packages: dependency: "direct main" description: name: geolocator - sha256: "5c23f3613f50586c0bbb2b8f970240ae66b3bd992088cf60dd5ee2e6f7dde3a8" + sha256: "694ec58afe97787b5b72b8a0ab78c1a9244811c3c10e72c4362ef3c0ceb005cd" url: "https://pub.dev" source: hosted - version: "9.0.2" + version: "11.0.0" geolocator_android: dependency: transitive description: name: geolocator_android - sha256: "94c2cf51f4a8387335cc2d1a21cc50897bc93069e05fc09aee29bd353a14f6f5" + sha256: "136f1c97e1903366393bda514c5d9e98843418baea52899aa45edae9af8a5cd6" url: "https://pub.dev" source: hosted - version: "4.1.9" + version: "4.5.2" geolocator_apple: dependency: "direct main" description: name: geolocator_apple - sha256: "36527c555f4c425f7d8fa8c7c07d67b78e3ff7590d40448051959e1860c1cfb4" + sha256: "2f2d4ee16c4df269e93c0e382be075cc01d5db6703c3196e4af20a634fe49ef4" url: "https://pub.dev" source: hosted - version: "2.2.7" + version: "2.3.6" geolocator_linux: dependency: "direct main" description: name: geolocator_linux - sha256: dd0f4461577e8b2560b4384a2d182230a7e075d0b193093441355f93728d1920 + sha256: "26a672e690b6337653e784ad2e26995f43b69860e9438b9d347b34094528c56f" url: "https://pub.dev" source: hosted - version: "0.1.3" + version: "0.2.0+2" geolocator_platform_interface: dependency: transitive description: name: geolocator_platform_interface - sha256: af4d69231452f9620718588f41acc4cb58312368716bfff2e92e770b46ce6386 + sha256: "009a21c4bc2761e58dccf07c24f219adaebe0ff707abdfd40b0a763d4003fab9" url: "https://pub.dev" source: hosted - version: "4.0.7" + version: "4.2.2" geolocator_web: dependency: transitive description: name: geolocator_web - sha256: f68a122da48fcfff68bbc9846bb0b74ef651afe84a1b1f6ec20939de4d6860e1 + sha256: "49d8f846ebeb5e2b6641fe477a7e97e5dd73f03cbfef3fd5c42177b7300fb0ed" url: "https://pub.dev" source: hosted - version: "2.1.6" + version: "3.0.0" geolocator_windows: dependency: transitive description: name: geolocator_windows - sha256: f5911c88e23f48b598dd506c7c19eff0e001645bdc03bb6fecb9f4549208354d + sha256: a92fae29779d5c6dc60e8411302f5221ade464968fe80a36d330e80a71f087af url: "https://pub.dev" source: hosted - version: "0.1.1" + version: "0.2.2" gsettings: dependency: transitive description: name: gsettings - sha256: fe90d719e09a6f36607021047e642068a0c98839d9633db00b91633420ae8b0d + sha256: "1b0ce661f5436d2db1e51f3c4295a49849f03d304003a7ba177d01e3a858249c" url: "https://pub.dev" source: hosted - version: "0.2.7" + version: "0.2.8" gtk: dependency: transitive description: @@ -237,18 +237,10 @@ packages: dependency: "direct main" description: name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" - url: "https://pub.dev" - source: hosted - version: "0.18.1" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.6.7" + version: "0.19.0" json_annotation: dependency: transitive description: @@ -261,34 +253,34 @@ packages: dependency: transitive description: name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "3.0.0" matcher: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" nested: dependency: transitive description: @@ -309,10 +301,10 @@ packages: dependency: transitive description: name: package_info_plus - sha256: ceb027f6bc6a60674a233b4a90a7658af1aebdea833da0b5b53c1e9821a78c7b + sha256: "88bc797f44a94814f2213db1c9bd5badebafdfb8290ca9f78d4b9ee2a3db4d79" url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "5.0.1" package_info_plus_platform_interface: dependency: transitive description: @@ -333,58 +325,50 @@ packages: dependency: transitive description: name: petitparser - sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 url: "https://pub.dev" source: hosted - version: "5.4.0" + version: "6.0.2" platform: dependency: transitive description: name: platform - sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.4" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "2.1.4" - process: - dependency: transitive - description: - name: process - sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" - url: "https://pub.dev" - source: hosted - version: "4.2.4" + version: "2.1.8" provider: dependency: "direct main" description: name: provider - sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f + sha256: "9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096" url: "https://pub.dev" source: hosted - version: "6.0.5" + version: "6.1.1" safe_change_notifier: dependency: "direct main" description: name: safe_change_notifier - sha256: e9e7e9daef7e4d27a266cc569842ec2fcb9484fba0f0ea209801c480efe8452c + sha256: "8d0645ec2706f580912c38de488439ddb491be48247826927b7bc2e54ea8f7af" url: "https://pub.dev" source: hosted - version: "0.3.0" + version: "0.3.2" screen_retriever: dependency: transitive description: name: screen_retriever - sha256: "4931f226ca158123ccd765325e9fbf360bfed0af9b460a10f960f9bb13d58323" + sha256: "6ee02c8a1158e6dae7ca430da79436e3b1c9563c8cf02f524af997c201ac2b90" url: "https://pub.dev" source: hosted - version: "0.1.6" + version: "0.1.9" sky_engine: dependency: transitive description: flutter @@ -394,34 +378,42 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" + sprintf: + dependency: transitive + description: + name: sprintf + sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" + url: "https://pub.dev" + source: hosted + version: "7.0.0" stack_trace: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" state_notifier: dependency: transitive description: name: state_notifier - sha256: "8fe42610f179b843b12371e40db58c9444f8757f8b69d181c97e50787caed289" + sha256: b8677376aa54f2d7c58280d5a007f9e8774f1968d1fb1c096adcb4792fba29bb url: "https://pub.dev" source: hosted - version: "0.7.2+1" + version: "1.0.0" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -442,10 +434,10 @@ packages: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.6.1" transparent_image: dependency: transitive description: @@ -466,10 +458,10 @@ packages: dependency: transitive description: name: uuid - sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" + sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "4.3.3" vector_math: dependency: transitive description: @@ -478,78 +470,86 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + web: + dependency: transitive + description: + name: web + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 + url: "https://pub.dev" + source: hosted + version: "0.3.0" win32: dependency: transitive description: name: win32 - sha256: dfdf0136e0aa7a1b474ea133e67cb0154a0acd2599c4f3ada3b49d38d38793ee + sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8" url: "https://pub.dev" source: hosted - version: "5.0.5" + version: "5.2.0" window_manager: dependency: transitive description: name: window_manager - sha256: "9eef00e393e7f9308309ce9a8b2398c9ee3ca78b50c96e8b4f9873945693ac88" + sha256: b3c895bdf936c77b83c5254bec2e6b3f066710c1f89c38b20b8acc382b525494 url: "https://pub.dev" source: hosted - version: "0.3.5" + version: "0.3.8" xdg_directories: dependency: transitive description: name: xdg_directories - sha256: bd512f03919aac5f1313eb8249f223bacf4927031bf60b02601f81f687689e86 + sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d url: "https://pub.dev" source: hosted - version: "0.2.0+3" + version: "1.0.4" xml: dependency: transitive description: name: xml - sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 url: "https://pub.dev" source: hosted - version: "6.3.0" + version: "6.5.0" yaru: dependency: "direct main" description: name: yaru - sha256: "2a44d7ee43fe3f87ca0bde691d44285387a49ac03d38653c5dd671feebcfb8e8" + sha256: e9ccb22cb283ecf3f6b21d64dee9764d4abff65a44f48ce21aa13b9eae3e3be5 url: "https://pub.dev" source: hosted - version: "0.9.0" + version: "1.2.2" yaru_icons: dependency: "direct main" description: name: yaru_icons - sha256: "8ddd40522c882de898a493094f2f41687f7a0faaf3434b9c854a7605a53a2477" + sha256: "2dff89ee31c2dd888e1ce146f0faef1c8de4ffbc90cb6466aacd55c3a9ad0674" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.4.0" yaru_widgets: dependency: "direct main" description: name: yaru_widgets - sha256: aaae361de8679bd1a21009893c6b5924118226c987b9ec8bdc2775cf1530b69b + sha256: "0bade922090f25eedcc88cdc15b8a6adbaba4e4b56d793e999224b22c95a19d2" url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "3.6.0" yaru_window: dependency: transitive description: name: yaru_window - sha256: "55c8f039d13aaa1b211a8cf0b7731ae2fdcac9b1be1e0994eb14ad1d17fecaf7" + sha256: c9d16f78962652ad71aa160ab0a1e2e5924359439303394f980fd00eefc905eb url: "https://pub.dev" source: hosted - version: "0.1.3" + version: "0.2.1" yaru_window_linux: dependency: transitive description: name: yaru_window_linux - sha256: c45606cf75880ae6427bbe176dc5313356f16c876c7013a19aeee782882c40c2 + sha256: "3676355492eba0461f03acf1b7420f7885982d1bffe113fccdca9415fbe39f5d" url: "https://pub.dev" source: hosted - version: "0.1.3" + version: "0.2.0" yaru_window_manager: dependency: transitive description: @@ -575,5 +575,5 @@ packages: source: hosted version: "0.0.3" sdks: - dart: ">=3.0.0 <4.0.0" - flutter: ">=3.10.0" + dart: ">=3.2.0 <4.0.0" + flutter: ">=3.16.0" diff --git a/pubspec.yaml b/pubspec.yaml index cb8788b..5b730d7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,17 +14,17 @@ dependencies: flutter: sdk: flutter - geolocator: ^9.0.2 + geolocator: ^11.0.0 geolocator_apple: ^2.2.7 - geolocator_linux: ^0.1.3 + geolocator_linux: ^0.2.0+2 handy_window: ^0.3.1 - intl: ^0.18.0 + intl: ^0.19.0 open_weather_client: ^2.2.0 provider: ^6.0.5 safe_change_notifier: ^0.3.0 - yaru: ^0.9.0 - yaru_icons: ^1.0.4 - yaru_widgets: ^2.5.0 + yaru: ^1.2.2 + yaru_icons: ^2.4.0 + yaru_widgets: ^3.6.0 flutter_weather_bg_null_safety: git: @@ -33,7 +33,7 @@ dependencies: geocoding_resolver: ^0.0.3+2 dev_dependencies: - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.1 flutter_test: sdk: flutter From d46637455ddedb2bf47da82a02f5b1718d46e226 Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Wed, 28 Feb 2024 13:49:05 +0100 Subject: [PATCH 2/3] master.. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af90e3c..cdd8ee3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: pull_request: - branches: [main] + branches: [master] env: FLUTTER_VERSION: '3.16.x' From 4bb4018e58f1612ac204fced9cc2b55471cb7bb4 Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Wed, 28 Feb 2024 13:57:34 +0100 Subject: [PATCH 3/3] add api key file --- .gitignore | 1 - assets/apikey.json | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 assets/apikey.json diff --git a/.gitignore b/.gitignore index f1beb03..2f36ff0 100644 --- a/.gitignore +++ b/.gitignore @@ -43,5 +43,4 @@ app.*.map.json /android/app/profile /android/app/release -assets/apikey.json .vscode/settings.json diff --git a/assets/apikey.json b/assets/apikey.json new file mode 100644 index 0000000..55a2d62 --- /dev/null +++ b/assets/apikey.json @@ -0,0 +1,3 @@ +{ + "apiKey": "YOUR_OPEN_WEATHER_API_KEY_HERE" +} \ No newline at end of file