24 lines
920 B
Dart
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';
|
|
}
|