Files
fl_chart/example/lib/urls.dart
zypherift c7e3f36b06
Some checks failed
Code Coverage / upload (push) Has been cancelled
Gh-Pages / build (push) Has been cancelled
Code Verification / verify (push) Has been cancelled
1.0.0
2025-08-09 18:17:34 +02:00

24 lines
920 B
Dart

import 'package:fl_chart_app/util/app_helper.dart';
class Urls {
static const flChartUrl = 'https://flchart.dev';
static const flChartGithubUrl = 'https://github.com/imaNNeo/fl_chart';
static String get aboutUrl => '$flChartUrl/about';
static String get downloadUrl => '$flChartUrl/download';
static String getChartSourceCodeUrl(ChartType chartType, int sampleNumber) {
final chartDir = chartType.name.toLowerCase();
return 'https://github.com/imaNNeo/fl_chart/blob/main/example/lib/presentation/samples/$chartDir/${chartDir}_chart_sample$sampleNumber.dart';
}
static String getChartDocumentationUrl(ChartType chartType) {
final chartDir = chartType.name.toLowerCase();
return 'https://github.com/imaNNeo/fl_chart/blob/main/repo_files/documentations/${chartDir}_chart.md';
}
static String getVersionReleaseUrl(String version) =>
'$flChartGithubUrl/releases/tag/$version';
}