From 7918942fbebd19f9a1b7abb009d9e546d6506432 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Sat, 7 Oct 2023 03:43:06 +0200 Subject: [PATCH 1/4] Fix macOS debug network issue --- example/macos/Runner/DebugProfile.entitlements | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/macos/Runner/DebugProfile.entitlements b/example/macos/Runner/DebugProfile.entitlements index dddb8a30c8..c946719a1a 100644 --- a/example/macos/Runner/DebugProfile.entitlements +++ b/example/macos/Runner/DebugProfile.entitlements @@ -8,5 +8,7 @@ com.apple.security.network.server + com.apple.security.network.client + From b99169b95870a976d95ab3cf85abf058c9ca330d Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Sat, 7 Oct 2023 03:43:20 +0200 Subject: [PATCH 2/4] Fix radar chart sample 1 overflow --- .../lib/presentation/samples/radar/radar_chart_sample1.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/lib/presentation/samples/radar/radar_chart_sample1.dart b/example/lib/presentation/samples/radar/radar_chart_sample1.dart index a8c5ab792a..a30b1dc495 100644 --- a/example/lib/presentation/samples/radar/radar_chart_sample1.dart +++ b/example/lib/presentation/samples/radar/radar_chart_sample1.dart @@ -50,6 +50,10 @@ class _RadarChartSample1State extends State { max: 360, onChanged: (double value) => setState(() => angleValue = value), ), + ], + ), + Row( + children: [ Checkbox( value: relativeAngleMode, onChanged: (v) => setState(() => relativeAngleMode = v!), From 396b2e16214d3a250eb0826dd5417414e787303f Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Sat, 7 Oct 2023 03:43:29 +0200 Subject: [PATCH 3/4] Upgrade example/ dependencies --- example/macos/Podfile.lock | 4 ++-- example/pubspec.yaml | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index b94d353ebf..5f803859e9 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -21,8 +21,8 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - path_provider_foundation: 37748e03f12783f9de2cb2c4eadfaa25fe6d4852 - url_launcher_macos: c04e4fa86382d4f94f6b38f14625708be3ae52e2 + path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 + url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95 PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 diff --git a/example/pubspec.yaml b/example/pubspec.yaml index a1caf4cc45..e8ae01818b 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -10,21 +10,21 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - cupertino_icons: ^1.0.5 - google_fonts: ^4.0.4 - flutter_svg: ^2.0.5 + cupertino_icons: ^1.0.6 + google_fonts: ^6.1.0 + flutter_svg: ^2.0.7 universal_platform: ^1.0.0+1 - flutter_staggered_grid_view: ^0.6.2 - url_launcher: ^6.1.11 - go_router: ^7.0.1 - dartx: ^1.1.0 + flutter_staggered_grid_view: ^0.7.0 + url_launcher: ^6.1.14 + go_router: ^11.1.2 + dartx: ^1.2.0 fl_chart: path: ../ dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.1 + flutter_lints: ^2.0.3 flutter: uses-material-design: true From 79e6ec7088587007812aef6b194371e4eb807fa3 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Sat, 7 Oct 2023 03:48:25 +0200 Subject: [PATCH 4/4] Open flchart.dev when user clicks on the fl_chart logo --- example/lib/presentation/menu/app_menu.dart | 13 +++++++++++-- example/lib/urls.dart | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/example/lib/presentation/menu/app_menu.dart b/example/lib/presentation/menu/app_menu.dart index 179a3ee622..e854f98a2e 100644 --- a/example/lib/presentation/menu/app_menu.dart +++ b/example/lib/presentation/menu/app_menu.dart @@ -1,4 +1,5 @@ import 'package:fl_chart_app/presentation/resources/app_resources.dart'; +import 'package:fl_chart_app/urls.dart'; import 'package:fl_chart_app/util/app_helper.dart'; import 'package:flutter/material.dart'; import 'package:url_launcher/url_launcher.dart'; @@ -30,11 +31,19 @@ class AppMenuState extends State { color: AppColors.itemsBackground, child: Column( children: [ - const SafeArea( + SafeArea( child: AspectRatio( aspectRatio: 3, child: Center( - child: FlChartBanner(), + child: InkWell( + onTap: () async { + final url = Uri.parse(Urls.flChartUrl); + if (await canLaunchUrl(url)) { + await launchUrl(url); + } + }, + child: const FlChartBanner(), + ), ), ), ), diff --git a/example/lib/urls.dart b/example/lib/urls.dart index 772c77702a..d1b9fb160d 100644 --- a/example/lib/urls.dart +++ b/example/lib/urls.dart @@ -1,6 +1,7 @@ import 'package:fl_chart_app/util/app_helper.dart'; class Urls { + static const flChartUrl = 'https://flchart.dev'; static String getChartSourceCodeUrl(ChartType chartType, int sampleNumber) { final chartDir = chartType.name.toLowerCase(); return 'https://github.com/imaNNeo/fl_chart/blob/master/example/lib/presentation/samples/$chartDir/${chartDir}_chart_sample$sampleNumber.dart';