Skip to content

Commit

Permalink
Merge branch 'imaNNeo:master' into issue-1197-gradient-fl-line
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartek12 authored Oct 7, 2023
2 parents 9af861f + 79e6ec7 commit 7d40fbc
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
13 changes: 11 additions & 2 deletions example/lib/presentation/menu/app_menu.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -30,11 +31,19 @@ class AppMenuState extends State<AppMenu> {
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(),
),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class _RadarChartSample1State extends State<RadarChartSample1> {
max: 360,
onChanged: (double value) => setState(() => angleValue = value),
),
],
),
Row(
children: [
Checkbox(
value: relativeAngleMode,
onChanged: (v) => setState(() => relativeAngleMode = v!),
Expand Down
1 change: 1 addition & 0 deletions example/lib/urls.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions example/macos/Runner/DebugProfile.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
16 changes: 8 additions & 8 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d40fbc

Please sign in to comment.